MdeModulePkg: Dxe: add LOONGARCH64 to mMachineTypeInfo

This fixes messages like:
"Image type X64 can't be loaded on <Unknown> UEFI system"

Cc: Liming Gao <gaoliming@byosoft.com.cn>
Cc: Chao Li <lichao@loongson.cn>
Signed-off-by: Dongyan Qian <qiandongyan@loongson.cn>
Reviewed-by: Chao Li <lichao@loongson.cn>
Reviewed-by: Liming Gao <gaoliming@byosoft.com.cn>
This commit is contained in:
Dongyan Qian 2023-11-25 14:18:13 +08:00 committed by mergify[bot]
parent 3656352675
commit a3aab12c34
1 changed files with 7 additions and 6 deletions

View File

@ -77,12 +77,13 @@ typedef struct {
} MACHINE_TYPE_INFO;
GLOBAL_REMOVE_IF_UNREFERENCED MACHINE_TYPE_INFO mMachineTypeInfo[] = {
{ EFI_IMAGE_MACHINE_IA32, L"IA32" },
{ EFI_IMAGE_MACHINE_IA64, L"IA64" },
{ EFI_IMAGE_MACHINE_X64, L"X64" },
{ EFI_IMAGE_MACHINE_ARMTHUMB_MIXED, L"ARM" },
{ EFI_IMAGE_MACHINE_AARCH64, L"AARCH64" },
{ EFI_IMAGE_MACHINE_RISCV64, L"RISCV64" },
{ EFI_IMAGE_MACHINE_IA32, L"IA32" },
{ EFI_IMAGE_MACHINE_IA64, L"IA64" },
{ EFI_IMAGE_MACHINE_X64, L"X64" },
{ EFI_IMAGE_MACHINE_ARMTHUMB_MIXED, L"ARM" },
{ EFI_IMAGE_MACHINE_AARCH64, L"AARCH64" },
{ EFI_IMAGE_MACHINE_RISCV64, L"RISCV64" },
{ EFI_IMAGE_MACHINE_LOONGARCH64, L"LOONGARCH64" },
};
UINT16 mDxeCoreImageMachineType = 0;