diff options
author | AKASHI Takahiro <takahiro.akashi@linaro.org> | 2019-12-16 11:12:47 +0900 |
---|---|---|
committer | Will Deacon <will@kernel.org> | 2020-01-08 17:05:23 +0000 |
commit | 3751e728cef2908c15974a5ae44627fd41ef3362 (patch) | |
tree | 3c30004b8d4f48e3f9bd6f3c07f0de537b5fd437 /arch/arm64/include/asm/kexec.h | |
parent | c273a2bd8aa81b72e48736c3aa51f7ffeae39925 (diff) | |
download | linux-stable-3751e728cef2908c15974a5ae44627fd41ef3362.tar.gz linux-stable-3751e728cef2908c15974a5ae44627fd41ef3362.tar.bz2 linux-stable-3751e728cef2908c15974a5ae44627fd41ef3362.zip |
arm64: kexec_file: add crash dump support
Enabling crash dump (kdump) includes
* prepare contents of ELF header of a core dump file, /proc/vmcore,
using crash_prepare_elf64_headers(), and
* add two device tree properties, "linux,usable-memory-range" and
"linux,elfcorehdr", which represent respectively a memory range
to be used by crash dump kernel and the header's location
Signed-off-by: AKASHI Takahiro <takahiro.akashi@linaro.org>
Cc: Catalin Marinas <catalin.marinas@arm.com>
Cc: Will Deacon <will.deacon@arm.com>
Reviewed-by: James Morse <james.morse@arm.com>
Tested-and-reviewed-by: Bhupesh Sharma <bhsharma@redhat.com>
Signed-off-by: Will Deacon <will@kernel.org>
Diffstat (limited to 'arch/arm64/include/asm/kexec.h')
-rw-r--r-- | arch/arm64/include/asm/kexec.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/arm64/include/asm/kexec.h b/arch/arm64/include/asm/kexec.h index 12a561a54128..d24b527e8c00 100644 --- a/arch/arm64/include/asm/kexec.h +++ b/arch/arm64/include/asm/kexec.h @@ -96,6 +96,10 @@ static inline void crash_post_resume(void) {} struct kimage_arch { void *dtb; unsigned long dtb_mem; + /* Core ELF header buffer */ + void *elf_headers; + unsigned long elf_headers_mem; + unsigned long elf_headers_sz; }; extern const struct kexec_file_ops kexec_image_ops; |