summaryrefslogtreecommitdiff
path: root/arch/riscv/kernel/vmlinux-xip.lds.S
diff options
context:
space:
mode:
authorNick Kossifidis <mick@ics.forth.gr>2021-04-19 03:55:39 +0300
committerPalmer Dabbelt <palmerdabbelt@google.com>2021-04-26 18:25:24 +0300
commit5640975003d0234da08559677e22ec25b9cb3267 (patch)
treea6707467c591146b277e5d846ef5d8fbe9d01bea /arch/riscv/kernel/vmlinux-xip.lds.S
parente53d28180d4d0fd12b6d2bde49cb87aa775b6ba8 (diff)
downloadlinux-5640975003d0234da08559677e22ec25b9cb3267.tar.xz
RISC-V: Add crash kernel support
This patch allows Linux to act as a crash kernel for use with kdump. Userspace will let the crash kernel know about the memory region it can use through linux,usable-memory property on the /memory node (overriding its reg property), and about the memory region where the elf core header of the previous kernel is saved, through a reserved-memory node with a compatible string of "linux,elfcorehdr". This approach is the least invasive and re-uses functionality already present. I tested this on riscv64 qemu and it works as expected, you may test it by retrieving the dmesg of the previous kernel through /proc/vmcore, using the vmcore-dmesg utility from kexec-tools. Signed-off-by: Nick Kossifidis <mick@ics.forth.gr> Signed-off-by: Palmer Dabbelt <palmerdabbelt@google.com>
Diffstat (limited to 'arch/riscv/kernel/vmlinux-xip.lds.S')
0 files changed, 0 insertions, 0 deletions