summaryrefslogtreecommitdiff
path: root/kexec/kexec-elf-exec.c
diff options
context:
space:
mode:
authorMahesh Salgaonkar <mahesh@linux.vnet.ibm.com>2013-02-12 16:17:16 +0530
committerSimon Horman <horms@verge.net.au>2013-03-05 11:11:03 +0900
commita69f5b5a432fc0abf6655a8b0bc667a900511f7d (patch)
tree11c38e63a4f5dcfb40afbd98aaa7a2dfbc41d2cb /kexec/kexec-elf-exec.c
parente35aa29fb40b37bf86d980b2e19af5e01c2d2549 (diff)
kexec: Respect memory limit while building crash memory ranges on ppc32.
So far powerpc kernel never exported memory limit information which is reflected by mem= kernel cmdline option. Hence, kexec-tools always used to build ELF header for entire system RAM generating a dump bigger than the actual memory used by the first kernel. This patch now reads the memory limit information from device-tree file and limits the crash memory ranges accordingly. Suzuki tested this patch on ppc32(ppc440) with a kernel patch by Suzuki. The following are the upstream kernel commits that exports memory limit information through /proc/device-tree file: 4bc77a5ed - powerpc: Export memory limit via device tree a84fcd468 - powerpc: Change memory_limit from phys_addr_t to unsigned long long Signed-off-by: Mahesh Salgaonkar <mahesh@linux.vnet.ibm.com> Tested-by: Suzuki K. Poulose <suzuki@in.ibm.com> Signed-off-by: Simon Horman <horms@verge.net.au>
Diffstat (limited to 'kexec/kexec-elf-exec.c')
0 files changed, 0 insertions, 0 deletions