riscv: kexec: add kexec_file_load() support
authorPalmer Dabbelt <palmer@rivosinc.com>
Thu, 19 May 2022 22:18:47 +0000 (15:18 -0700)
committerPalmer Dabbelt <palmer@rivosinc.com>
Thu, 19 May 2022 23:26:50 +0000 (16:26 -0700)
commit83a7a614ce584c469bf8abfc2cd539701bd7d4e9
tree0ee08a965ab0cdae1f7c33c511d4e0603ed74a57
parent7eb6369d7acfe87df73848b3757c648e8f352b86
parent838b3e28488f702e2b5477b393f009b2639d2b1a
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
arch/riscv/Kconfig
arch/riscv/kernel/Makefile