summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorPalmer Dabbelt <palmer@rivosinc.com>2022-05-19 15:18:47 -0700
committerPalmer Dabbelt <palmer@rivosinc.com>2022-05-19 16:26:50 -0700
commit83a7a614ce584c469bf8abfc2cd539701bd7d4e9 (patch)
tree0ee08a965ab0cdae1f7c33c511d4e0603ed74a57 /include
parent7eb6369d7acfe87df73848b3757c648e8f352b86 (diff)
parent838b3e28488f702e2b5477b393f009b2639d2b1a (diff)
downloadcachepc-linux-83a7a614ce584c469bf8abfc2cd539701bd7d4e9.tar.gz
cachepc-linux-83a7a614ce584c469bf8abfc2cd539701bd7d4e9.zip
riscv: kexec: add kexec_file_load() support
This patch set implements kexec_file_load() for RISC-V, which is currently only allowed on rv64 due to some minor build issues on 32-bit platforms in the generic code. This allows users to kexec() using an FD as opposed to a buffer. Link: https://lore.kernel.org/all/20220408100914.150110-1-lizhengyu3@huawei.com/ * palmer/riscv-kexec_file: RISC-V: Load purgatory in kexec_file RISC-V: Add purgatory RISC-V: Support for kexec_file on panic RISC-V: Add kexec_file support RISC-V: use memcpy for kexec_file mode kexec_file: Fix kexec_file.c build error for riscv platform
Diffstat (limited to 'include')
-rw-r--r--include/linux/kexec.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/kexec.h b/include/linux/kexec.h
index 58d1b58a971e..ebb1bffbf068 100644
--- a/include/linux/kexec.h
+++ b/include/linux/kexec.h
@@ -227,7 +227,7 @@ struct crash_mem {
extern int crash_exclude_mem_range(struct crash_mem *mem,
unsigned long long mstart,
unsigned long long mend);
-extern int crash_prepare_elf64_headers(struct crash_mem *mem, int kernel_map,
+extern int crash_prepare_elf64_headers(struct crash_mem *mem, int need_kernel_map,
void **addr, unsigned long *sz);
#endif /* CONFIG_KEXEC_FILE */