diff options
author | qhuang8 <qhuang8@6f19259b-4bc3-4df7-8a09-765794883524> | 2008-04-02 06:56:35 +0000 |
---|---|---|
committer | qhuang8 <qhuang8@6f19259b-4bc3-4df7-8a09-765794883524> | 2008-04-02 06:56:35 +0000 |
commit | 5fed8e341a2533f25398fc792ee75adb4ef87864 (patch) | |
tree | 49d168bb274d01616cb65024206cf8dd09cff639 /MdeModulePkg | |
parent | 2a4b165f8a2cf8cf0bc0c2afab368e58182573d3 (diff) | |
download | edk2-platforms-5fed8e341a2533f25398fc792ee75adb4ef87864.tar.xz |
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
Diffstat (limited to 'MdeModulePkg')
-rw-r--r-- | MdeModulePkg/Core/Dxe/Image/Image.c | 12 |
1 files 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;
+ }
}
//
|