summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXiaotian Wu <wuxiaotian@loongson.cn>2023-01-04 10:27:28 +0800
committerXiaotian Wu <wuxiaotian@loongson.cn>2023-01-04 10:31:26 +0800
commit1ba13fdfd0c188a8ced74f4459bb35542018728e (patch)
treee99581b01d78f84e20e8e0a37b1ff2259e73b9ee
parentc2102ae05917d81ffc7b854003415e575fc90764 (diff)
downloadgnu-efi-1ba13fdfd0c188a8ced74f4459bb35542018728e.tar.gz
Add PE machine type definitions for the LoongArch
See https://learn.microsoft.com/en-us/windows/win32/debug/pe-format#machine-types Signed-off-by: Xiaotian Wu <wuxiaotian@loongson.cn>
-rw-r--r--inc/efiapi.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/inc/efiapi.h b/inc/efiapi.h
index 7dbedc4..01a0938 100644
--- a/inc/efiapi.h
+++ b/inc/efiapi.h
@@ -354,6 +354,14 @@ EFI_STATUS
#define EFI_IMAGE_MACHINE_RISCV128 0x5128
#endif
+#if !defined(EFI_IMAGE_MACHINE_LOONGARCH32)
+#define EFI_IMAGE_MACHINE_LOONGARCH32 0x6232
+#endif
+
+#if !defined(EFI_IMAGE_MACHINE_LOONGARCH64)
+#define EFI_IMAGE_MACHINE_LOONGARCH64 0x6264
+#endif
+
// Image Entry prototype
typedef