android_kernel_oneplus_msm8998/arch/mips/boot/compressed
Huacai Chen a214fe5560 MIPS: Align kernel load address to 64KB
commit bec0de4cfad21bd284dbddee016ed1767a5d2823 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>
Cc: <stable@vger.kernel.org> # 2.6.36+
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2019-01-13 10:05:31 +01:00
..
calc_vmlinuz_load_addr.c MIPS: Align kernel load address to 64KB 2019-01-13 10:05:31 +01:00
dbg.c mips: delete non-required instances of include <linux/init.h> 2014-01-24 22:39:56 +01:00
decompress.c lib/decompressors: use real out buf size for gunzip with kernel 2015-09-10 13:29:01 -07:00
dummy.c MIPS: Add support for GZIP / BZIP2 / LZMA compressed kernel images 2009-12-17 01:56:56 +00:00
head.S MIPS: Add support for vmlinuz.bin appended dtb 2015-06-21 21:54:15 +02:00
ld.script MIPS: Add support for vmlinuz.bin appended dtb 2015-06-21 21:54:15 +02:00
Makefile MIPS: Fix alignment of quiet build output for vmlinuz link 2015-09-03 12:08:15 +02:00
string.c MIPS: ZBOOT: gather string functions into string.c 2014-01-24 22:39:55 +01:00
uart-16550.c MIPS: Loongson: Naming style cleanup and rework 2015-06-21 21:53:59 +02:00
uart-alchemy.c MIPS: Alchemy: Single kernel for DB1200/1300/1550 2012-10-11 11:11:20 +02:00