]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/kexec: Check crash_base for relocatable kernel
authorMilton Miller <miltonm@bga.com>
Fri, 2 Jan 2009 10:46:15 +0000 (10:46 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Tue, 13 Jan 2009 03:47:59 +0000 (14:47 +1100)
commit62660cd0b1ed3fb579bba8bdaca9a2ce124ad32d
tree5f1832ed0eb95c55b4a3c650b541c0aecd6d8aec
parent655f44993eb3e1849b4fba7402f805be06512b5a
powerpc/kexec: Check crash_base for relocatable kernel

Enforce that the crash kernel region never overlaps the current kernel,
as it will be written directly on kexec load.

Also, default to the previous KDUMP_KERNELBASE if the start is 0.

Other architectures (x86, ia64) state that specifying the start address
0 (or omitting it) will result in the kernel allocating it.  Before the
relocatable patch in 2.6.28, powerpc would adjust any other start value
to the hardcoded KDUMP_KERNELBASE of 32M.

Signed-off-by: Milton Miller <miltonm@bga.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/kernel/machine_kexec.c