Message ID | 20200413212907.29244-3-atish.patra@wdc.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | Add UEFI support for RISC-V | expand |
On Mon, 13 Apr 2020 14:29:04 PDT (-0700), Atish Patra wrote: > Define RISC-V related machine types. > > Signed-off-by: Atish Patra <atish.patra@wdc.com> > Reviewed-by: Ard Biesheuvel <ardb@kernel.org> > --- > include/linux/pe.h | 3 +++ > 1 file changed, 3 insertions(+) > > 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 I'm reading "Unified Extensible Firmware Interface (UEFI) Specification Version 2.8 Errata A" and see all this Reviewed-by: Palmer Dabbelt <palmerdabbelt@google.com>
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