summaryrefslogtreecommitdiff
path: root/include/linux/pe.h
diff options
context:
space:
mode:
authorAtish Patra <atish.patra@wdc.com>2020-08-28 10:20:31 -0700
committerArd Biesheuvel <ardb@kernel.org>2020-09-11 09:30:01 +0300
commit6d0fd536183034953bf84826fecb37e47779d24b (patch)
tree61c1f7c5be31e36a3f579de9f6c5bfb569e19b96 /include/linux/pe.h
parent9123e3a74ec7b934a4a099e98af6a61c2f80bbf5 (diff)
include: pe.h: Add RISC-V related PE definition
Define RISC-V related machine types. Signed-off-by: Atish Patra <atish.patra@wdc.com> Reviewed-by: Palmer Dabbelt <palmerdabbelt@google.com> Link: https://lore.kernel.org/r/20200415195422.19866-3-atish.patra@wdc.com Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Diffstat (limited to 'include/linux/pe.h')
-rw-r--r--include/linux/pe.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/pe.h b/include/linux/pe.h
index 8ad71d763a77..daf09ffffe38 100644
--- a/include/linux/pe.h
+++ b/include/linux/pe.h
@@ -55,6 +55,9 @@
#define IMAGE_FILE_MACHINE_POWERPC 0x01f0
#define IMAGE_FILE_MACHINE_POWERPCFP 0x01f1
#define IMAGE_FILE_MACHINE_R4000 0x0166
+#define IMAGE_FILE_MACHINE_RISCV32 0x5032
+#define IMAGE_FILE_MACHINE_RISCV64 0x5064
+#define IMAGE_FILE_MACHINE_RISCV128 0x5128
#define IMAGE_FILE_MACHINE_SH3 0x01a2
#define IMAGE_FILE_MACHINE_SH3DSP 0x01a3
#define IMAGE_FILE_MACHINE_SH3E 0x01a4