summaryrefslogtreecommitdiff
path: root/arch/riscv/include
diff options
context:
space:
mode:
authorPalmer Dabbelt <palmer@rivosinc.com>2022-05-20 01:18:47 +0300
committerPalmer Dabbelt <palmer@rivosinc.com>2022-05-20 02:26:50 +0300
commit83a7a614ce584c469bf8abfc2cd539701bd7d4e9 (patch)
tree0ee08a965ab0cdae1f7c33c511d4e0603ed74a57 /arch/riscv/include
parent7eb6369d7acfe87df73848b3757c648e8f352b86 (diff)
parent838b3e28488f702e2b5477b393f009b2639d2b1a (diff)
downloadlinux-83a7a614ce584c469bf8abfc2cd539701bd7d4e9.tar.xz
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 'arch/riscv/include')
-rw-r--r--arch/riscv/include/asm/kexec.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/riscv/include/asm/kexec.h b/arch/riscv/include/asm/kexec.h
index e4e291d40759..206217b23301 100644
--- a/arch/riscv/include/asm/kexec.h
+++ b/arch/riscv/include/asm/kexec.h
@@ -53,4 +53,8 @@ typedef void (*riscv_kexec_method)(unsigned long first_ind_entry,
extern riscv_kexec_method riscv_kexec_norelocate;
+#ifdef CONFIG_KEXEC_FILE
+extern const struct kexec_file_ops elf_kexec_ops;
+#endif
+
#endif