Skip to content

Commit d83e682

Browse files
mickflemmpalmer-dabbelt
authored andcommitted
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 Signed-off-by: Nick Kossifidis <[email protected]> Signed-off-by: Palmer Dabbelt <[email protected]>
1 parent 772d789 commit d83e682

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

include/uapi/linux/kexec.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@
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

0 commit comments

Comments
 (0)