summaryrefslogtreecommitdiff
path: root/include/uapi/linux/kexec.h
diff options
context:
space:
mode:
authorNick Kossifidis <mick@ics.forth.gr>2021-04-19 03:55:35 +0300
committerPalmer Dabbelt <palmerdabbelt@google.com>2021-04-26 18:25:20 +0300
commitd83e682e301071313e390e2f5ba2f6ca2ebc1848 (patch)
tree81ce5b42b6f7b2c7a29c6bf095868bd0ec2b0ce2 /include/uapi/linux/kexec.h
parent772d7891e8b3b0baae7bb88a294d61fd07ba6d15 (diff)
downloadlinux-d83e682e301071313e390e2f5ba2f6ca2ebc1848.tar.xz
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 <mick@ics.forth.gr> Signed-off-by: Palmer Dabbelt <palmerdabbelt@google.com>
Diffstat (limited to 'include/uapi/linux/kexec.h')
-rw-r--r--include/uapi/linux/kexec.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/uapi/linux/kexec.h b/include/uapi/linux/kexec.h
index 05669c87a0af..778dc191c265 100644
--- a/include/uapi/linux/kexec.h
+++ b/include/uapi/linux/kexec.h
@@ -42,6 +42,7 @@
#define KEXEC_ARCH_MIPS_LE (10 << 16)
#define KEXEC_ARCH_MIPS ( 8 << 16)
#define KEXEC_ARCH_AARCH64 (183 << 16)
+#define KEXEC_ARCH_RISCV (243 << 16)
/* The artificial cap on the number of segments passed to kexec_load. */
#define KEXEC_SEGMENT_MAX 16