History

RISC-V: Add EM_RISCV to kexec UAPI header

Add RISC-V to the list of supported kexec architectures, we need to add the definition early-on so that later patches can use it. EM_RISCV is 243 as per ELF psABI specification here: https://github.com/riscv/riscv-elf-psabi-doc/blob/master/riscv-elf.md

Nick Kossifidis committed 5 years ago

Commit d83e6821 parent 772d7891 file · +1 −0Browse files

Showing the changes to include/uapi (1 of 1 file). Show all

Unified · Split

include/uapi/linux/kexec.h+1−0
@@ -42,6 +42,7 @@ · 41 unmodified lines
4242 #define KEXEC_ARCH_MIPS_LE (10 << 16)
4343 #define KEXEC_ARCH_MIPS ( 8 << 16)
4444 #define KEXEC_ARCH_AARCH64 (183 << 16)
45+#define KEXEC_ARCH_RISCV (243 << 16)
4546
4647 /* The artificial cap on the number of segments passed to kexec_load. */
4748 #define KEXEC_SEGMENT_MAX 16