From 5fed8e341a2533f25398fc792ee75adb4ef87864 Mon Sep 17 00:00:00 2001 From: qhuang8 Date: Wed, 2 Apr 2008 06:56:35 +0000 Subject: [PATCH] Update DxeCore to load image wit supported machine types: DXE Core Supported Machine Types ======= =================== IA32 IA32, EBC, X64 X64 X64, EBC, IA32 IPF IPF, EBC EBC EBC git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@4977 6f19259b-4bc3-4df7-8a09-765794883524 --- MdeModulePkg/Core/Dxe/Image/Image.c | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/MdeModulePkg/Core/Dxe/Image/Image.c b/MdeModulePkg/Core/Dxe/Image/Image.c index 3587460990..1ef670163a 100644 --- a/MdeModulePkg/Core/Dxe/Image/Image.c +++ b/MdeModulePkg/Core/Dxe/Image/Image.c @@ -225,11 +225,13 @@ Returns: } if (!EFI_IMAGE_MACHINE_TYPE_SUPPORTED (Image->ImageContext.Machine)) { - // - // The PE/COFF loader can support loading image types that can be executed. - // If we loaded an image type that we can not execute return EFI_UNSUPORTED. - // - return EFI_UNSUPPORTED; + if (!EFI_IMAGE_MACHINE_CROSS_TYPE_SUPPORTED (Image->ImageContext.Machine)) { + // + // The PE/COFF loader can support loading image types that can be executed. + // If we loaded an image type that we can not execute return EFI_UNSUPORTED. + // + return EFI_UNSUPPORTED; + } } //