diff options
author | 2023-09-07 18:33:03 +0800 | |
---|---|---|
committer | 2023-09-20 02:53:30 -0700 | |
commit | 767423658d53d147409821e51e6d0bc12425b24f (patch) | |
tree | d4d90c8e92b76b121906860ac92a8d139e97089c /tools/perf/scripts/python | |
parent | riscv: kexec: Cleanup riscv_kexec_relocate (diff) | |
download | wireguard-linux-767423658d53d147409821e51e6d0bc12425b24f.tar.xz wireguard-linux-767423658d53d147409821e51e6d0bc12425b24f.zip |
riscv: kexec: Align the kexeced kernel entry
The current riscv boot protocol requires 2MB alignment for RV64
and 4MB alignment for RV32.
In KEXEC_FILE path, the elf_find_pbase() function should align
the kexeced kernel entry according to the requirement, otherwise
the kexeced kernel would silently BUG at the setup_vm().
Fixes: 8acea455fafa ("RISC-V: Support for kexec_file on panic")
Signed-off-by: Song Shuai <songshuaishuai@tinylab.org>
Link: https://lore.kernel.org/r/20230907103304.590739-3-songshuaishuai@tinylab.org
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions