]> git.baikalelectronics.ru Git - kernel.git/commit
MIPS: Align kernel load address to 64KB
authorHuacai Chen <chenhc@lemote.com>
Thu, 15 Nov 2018 07:53:56 +0000 (15:53 +0800)
committerPaul Burton <paul.burton@mips.com>
Wed, 21 Nov 2018 05:05:39 +0000 (21:05 -0800)
commitd76809db6acdab8a678a827862bb9dbeb3e05b39
tree244139541db64970f475bc4d65d4dac3da8a5319
parent0da8677c59da4dd3d0fcfac27112541d6add3fef
MIPS: Align kernel load address to 64KB

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>
Cc: <stable@vger.kernel.org> # 2.6.36+
arch/mips/boot/compressed/calc_vmlinuz_load_addr.c