summaryrefslogtreecommitdiffstats
path: root/arch/cris
diff options
context:
space:
mode:
authorMatt Redfearn <matt.redfearn@imgtec.com>2016-10-17 18:25:24 +0200
committerRalf Baechle <ralf@linux-mips.org>2016-11-04 00:32:06 +0100
commit9a59061cfd7ac00f21111d2e8aa7f4ab11d27f6c (patch)
treec74bb639bcb32b6ca2ce0661481095f9c81e4d85 /arch/cris
parentMIPS: KASLR: Fix handling of NULL FDT (diff)
downloadlinux-9a59061cfd7ac00f21111d2e8aa7f4ab11d27f6c.tar.xz
linux-9a59061cfd7ac00f21111d2e8aa7f4ab11d27f6c.zip
MIPS: generic: Fix KASLR for generic kernel.
The KASLR code requires that the plat_get_fdt() function return the address of the device tree, and it must be available early in the boot, before prom_init() is called. Move the code determining the address of the device tree into plat_get_fdt, and call that from prom_init(). The fdt pointer will be set up by plat_get_fdt() called from relocate_kernel initially and once the relocated kernel has started, prom_init() will use it again to determine the address in the relocated image. Fixes: eed0eabd12ef ("MIPS: generic: Introduce generic DT-based board support") Signed-off-by: Matt Redfearn <matt.redfearn@imgtec.com> Reviewed-by: James Hogan <james.hogan@imgtec.com> Reviewed-by: Paul Burton <paul.burton@imgtec.com> Cc: linux-mips@linux-mips.org Cc: linux-kernel@vger.kernel.org Patchwork: https://patchwork.linux-mips.org/patch/14415/ Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/cris')
0 files changed, 0 insertions, 0 deletions