riscv: Introduce compat-mode helpers & improve arch_get_mmap_end()
Status from this message: This series was applied to riscv/linux.git (for-next)
Get series with b4
b4 am [email protected]Versions newest first
Changes since RFC from the cover letter
- Fused with other patchset: Improve arch_get_mmap_end() macro
- Renamed from "Introduce & Optimize compat-mode helpers"
Patches in v1 All 5 applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/5 | riscv: Improve arch_get_mmap_end() macroarch/ | +9 | 0 replies | Applied |
| 2/5 | riscv: Replace direct thread flag check with is_compat_task()arch/ arch/ | +2 | 0 replies | Applied |
| 3/5 | riscv: add compile-time test into is_compat_task()arch/ arch/ arch/ +1 more | +5 | 0 replies | Applied |
| 4/5 | riscv: Introduce is_compat_thread() into compat.harch/ arch/ | +11 | 0 replies | Applied |
| 5/5 | riscv: Introduce set_compat_task() in asm/compat.harch/ arch/ | +9 | 0 replies | Applied |
Reviews trailers per patch
4 of 5 patches have a Reviewed-by or Acked-by.
| Patch | Guo Ren | Andy Chiu |
|---|---|---|
| 1/5 | R-b | |
| 2/5 | ||
| 3/5 | R-b | R-b |
| 4/5 | R-b | R-b |
| 5/5 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v1 0/5] riscv: Introduce compat-mode helpers & improve arch_get_mmap_end()
I just saw the opportunity of optimizing the helper is_compat_task() by introducing a compile-time test, and it made possible to remove some #ifdef's without any loss of performance.
I also saw the possibility of removing the direct check of task flags from general code, and concentrated it in asm/compat.h by creating a few more helpers, which in the end helped optimize code.
arch_get_mmap_end() just got a simple improvement and some extra docs.
Changes since RFC:
- Fused with other patchset: Improve arch_get_mmap_end() macro
- Renamed from "Introduce & Optimize compat-mode helpers"
Leonardo Bras (5):
riscv: Improve arch_get_mmap_end() macro
riscv: Replace direct thread flag check with is_compat_task()
riscv: add compile-time test into is_compat_task()
riscv: Introduce is_compat_thread() into compat.h
riscv: Introduce set_compat_task() in asm/compat.h
arch/riscv/include/asm/compat.h | 19 +++++++++++++++++++ arch/riscv/include/asm/elf.h | 11 ++--------- arch/riscv/include/asm/pgtable.h | 8 +------- arch/riscv/include/asm/processor.h | 16 +++++++++++----- arch/riscv/kernel/ptrace.c | 6 +++--- 5 files changed, 36 insertions(+), 24 deletions(-)
base-commit: 610a9b8f49fbcf1100716370d3b5f6f884a2835a
Signature · 1 line
2.43.0