Skip to content

arm64: kexec: translate relocate_kernel.S to C languange

Pingfan Liu linux-arm-kernel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4arm64: relocate: Let __relocate_new_kernel_start align on SZ_4Karch/arm64/kernel/vmlinux.lds.S+1 -10 replies
2/4arm64: mm: Provide prot param in trans_pgd_idmap_page()'s prototypearch/arm64/include/asm/trans_pgd.h arch/arm64/kernel/hibernate.c arch/arm64/kernel/machine_kexec.c +1 more+7 -60 replies
3/4arm64: kexec: Introduce d_size to carry cacheline size informationarch/arm64/include/asm/kexec.h arch/arm64/kernel/machine_kexec.c+4 -00 replies
4/4arm64: kexec: Change relocate_kernel to C codearch/arm64/kernel/Makefile arch/arm64/kernel/asm-offsets.c arch/arm64/kernel/machine_kexec.c +3 more+206 -1121 reply

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/4] arm64: kexec: translate relocate_kernel.S to C languange

Translate relocate_kernel.S to C languange to make it more readable.

The relocate_kernel.c is PIE, but I am not sure whether it should locate in kernel/pi, which runs check on the PIE code. (I can correct it in next version)

Cc: Catalin Marinas <[email protected]>
Cc: Will Deacon <[email protected]>
Cc: Ard Biesheuvel <[email protected]>
Cc: Kees Cook <[email protected]>
Cc: Mark Rutland <[email protected]>
Cc: Pasha Tatashin <[email protected]>
To: [email protected]
---
Pingfan Liu (4):
arm64: relocate: Let __relocate_new_kernel_start align on SZ_4K
arm64: mm: Provide prot param in trans_pgd_idmap_page()'s prototype
arm64: kexec: Introduce d_size to carry cacheline size information
arm64: kexec: Change relocate_kernel to C code

 arch/arm64/include/asm/kexec.h      |   1 +
 arch/arm64/include/asm/trans_pgd.h  |   2 +-
 arch/arm64/kernel/Makefile          |   1 +
 arch/arm64/kernel/asm-offsets.c     |  10 --
 arch/arm64/kernel/hibernate.c       |   3 +-
 arch/arm64/kernel/machine_kexec.c   |  16 ++-
 arch/arm64/kernel/relocate_kernel.S | 100 --------------
 arch/arm64/kernel/relocate_kernel.c | 197 ++++++++++++++++++++++++++++
 arch/arm64/kernel/vmlinux.lds.S     |   3 +-
 arch/arm64/mm/trans_pgd.c           |   4 +-
 10 files changed, 218 insertions(+), 119 deletions(-)
 delete mode 100644 arch/arm64/kernel/relocate_kernel.S
 create mode 100644 arch/arm64/kernel/relocate_kernel.c
Signature · 7 lines
2.41.0


_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel