aboutsummaryrefslogtreecommitdiff
path: root/drivers/mtd/lpddr/lpddr_cmds.c
diff options
context:
space:
mode:
authorSong Shuai <songshuaishuai@tinylab.org>2023-09-06 17:58:17 +0800
committerPalmer Dabbelt <palmer@rivosinc.com>2023-09-12 13:58:39 -0700
commit1bfb2b618d52e59a4ef1896b46c4698ad2be66b7 (patch)
tree7a60648daf5d99045df93fbcfdc7a7b177fb7d25 /drivers/mtd/lpddr/lpddr_cmds.c
parent0bb80ecc33a8fb5a682236443c1e740d5c917d1d (diff)
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/20230906095817.364390-1-songshuaishuai@tinylab.org Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
Diffstat (limited to 'drivers/mtd/lpddr/lpddr_cmds.c')
0 files changed, 0 insertions, 0 deletions