linux/arch/mips/boot
Huacai Chen 3c75eb57cb MIPS: Align kernel load address to 64KB
commit bec0de4cfa upstream.

KEXEC needs the new kernel's load address to be aligned on a page
boundary (see sanity_check_segment_list()), but on MIPS the default
vmlinuz load address is only explicitly aligned to 16 bytes.

Since the largest PAGE_SIZE supported by MIPS kernels is 64KB, increase
the alignment calculated by calc_vmlinuz_load_addr to 64KB.

Signed-off-by: Huacai Chen <chenhc@lemote.com>
Signed-off-by: Paul Burton <paul.burton@mips.com>
Patchwork: https://patchwork.linux-mips.org/patch/21131/
Cc: Ralf Baechle <ralf@linux-mips.org>
Cc: James Hogan <james.hogan@mips.com>
Cc: Steven J . Hill <Steven.Hill@cavium.com>
Cc: linux-mips@linux-mips.org
Cc: Fuxin Zhang <zhangfx@lemote.com>
Cc: Zhangjin Wu <wuzhangjin@gmail.com>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
History 2019-04-04 16:13:43 +01:00
..
compressed MIPS: Align kernel load address to 64KB 2019-04-04 16:13:43 +01:00
dts/include MIPS: Fix invalid symbolic link file 2013-09-19 17:04:35 +02:00
.gitignore MIPS: Add uImage build target 2013-09-03 18:00:01 +02:00
ecoff.h MIPS: remove duplicate define 2013-11-06 15:51:19 +01:00
elf2ecoff.c MIPS: elf2ecoff: Ignore PT_MIPS_ABIFLAGS program headers. 2017-11-11 13:34:02 +00:00
Makefile MIPS: Add uImage build target 2013-09-03 18:00:01 +02:00