diff options
author | Suzuki K. Poulose <suzuki@in.ibm.com> | 2011-10-03 15:48:12 +0530 |
---|---|---|
committer | Simon Horman <horms@verge.net.au> | 2011-10-21 16:46:21 +0900 |
commit | 90da2c3735b9ee4ddc80257c6036816bd570dcc8 (patch) | |
tree | 5a8e668d4e9e2b0d630ea948426f7a017a2d1f5e /purgatory/arch | |
parent | ec4d31441ed4ea6ab320b63cc1472eda46e70ca2 (diff) |
kexec: powerpc: crash_dump: No backup region for PPC BookE
Disable backup regions for BookE in case of a CRASH Dump, as they can
be run from anywhere.
The patch introduces --with-booke option to support the BookE.
With the patch, we get :
## On a 256M machine:
# busybox cat /proc/cmdline
init=/bin/init console=ttyS0,16550 crashkernel=128M@100M
# kexec -p root/vmlinux
usable memory rgns size:1 base:6400000 size:8000000
CRASH MEMORY RANGES
0000000000000000-0000000006400000
000000000e400000-0000000010000000
Command line after adding elfcorehdr: elfcorehdr=112380K
Command line after adding elfcorehdr: elfcorehdr=112380K savemaxmem=256M
Signed-off-by: Suzuki K. Poulose<suzuki@in.ibm.com>
Signed-off-by: Simon Horman <horms@verge.net.au>
Diffstat (limited to 'purgatory/arch')
-rw-r--r-- | purgatory/arch/ppc/purgatory-ppc.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/purgatory/arch/ppc/purgatory-ppc.c b/purgatory/arch/ppc/purgatory-ppc.c index 3e6b354..3df3767 100644 --- a/purgatory/arch/ppc/purgatory-ppc.c +++ b/purgatory/arch/ppc/purgatory-ppc.c @@ -36,8 +36,10 @@ void setup_arch(void) void post_verification_setup_arch(void) { +#ifndef CONFIG_BOOKE if (panic_kernel) crashdump_backup_memory(); +#endif } void crashdump_backup_memory(void) |