summaryrefslogtreecommitdiffstats
path: root/kexec/arch/arm/crashdump-arm.c
diff options
context:
space:
mode:
Diffstat (limited to 'kexec/arch/arm/crashdump-arm.c')
-rw-r--r--kexec/arch/arm/crashdump-arm.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/kexec/arch/arm/crashdump-arm.c b/kexec/arch/arm/crashdump-arm.c
index daa47886..1ec1826c 100644
--- a/kexec/arch/arm/crashdump-arm.c
+++ b/kexec/arch/arm/crashdump-arm.c
@@ -54,7 +54,7 @@ struct memory_ranges usablemem_rgns = {
};
/* The boot-time physical memory range reserved for crashkernel region */
-static struct memory_range crash_kernel_mem;
+struct memory_range crash_kernel_mem;
/* reserved regions */
#define CRASH_MAX_RESERVED_RANGES 2
@@ -64,6 +64,8 @@ static struct memory_ranges crash_reserved_rgns = {
.ranges = crash_reserved_ranges,
};
+struct memory_range elfcorehdr_mem;
+
static struct crash_elf_info elf_info = {
.class = ELFCLASS32,
.data = ELFDATANATIVE,
@@ -307,7 +309,11 @@ int load_crashdump_segments(struct kexec_info *info, char *mod_cmdline)
crash_kernel_mem.start,
crash_kernel_mem.end, -1, 0);
- dbgprintf("elfcorehdr: %#lx\n", elfcorehdr);
+ elfcorehdr_mem.start = elfcorehdr;
+ elfcorehdr_mem.end = elfcorehdr + bufsz - 1;
+
+ dbgprintf("elfcorehdr 0x%llx-0x%llx\n", elfcorehdr_mem.start,
+ elfcorehdr_mem.end);
cmdline_add_elfcorehdr(mod_cmdline, elfcorehdr);
/*