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
This commit is contained in:
qhuang8 2008-04-02 06:56:35 +00:00
parent 2a4b165f8a
commit 5fed8e341a
1 changed files with 7 additions and 5 deletions

View File

@ -225,12 +225,14 @@ Returns:
}
if (!EFI_IMAGE_MACHINE_TYPE_SUPPORTED (Image->ImageContext.Machine)) {
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;
}
}
//
// Set EFI memory type based on ImageType