]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
[PATCH] powerpc: Don't overwrite flat device tree with kdump kernel
authorMichael Ellerman <michael@ellerman.id.au>
Fri, 3 Feb 2006 08:05:47 +0000 (19:05 +1100)
committerPaul Mackerras <paulus@samba.org>
Tue, 7 Feb 2006 10:32:44 +0000 (21:32 +1100)
commitb68239ee746760bd99a68692f4c97a28f08a5d01
tree716746e0faca1db7691f53c8d85ae72bddc5d001
parentb4fd884a037c791a39f2f03da719e251af176a97
[PATCH] powerpc: Don't overwrite flat device tree with kdump kernel

It's possible for prom_init to allocate the flat device tree inside the
kdump crash kernel region. If this happens, when we load the kdump kernel we
overwrite the flattened device tree, which is bad.

We could make prom_init try and avoid allocating inside the crash kernel
region, but then we run into issues if the crash kernel region uses all the
space inside the RMO. The easiest solution is to move the flat device tree
once we're running in the kernel.

Signed-off-by: Michael Ellerman <michael@ellerman.id.au>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/kernel/prom.c
arch/powerpc/kernel/setup_64.c
include/asm-powerpc/prom.h