summaryrefslogtreecommitdiff
path: root/MdeModulePkg/Core/Pei/Image/Image.c
diff options
context:
space:
mode:
Diffstat (limited to 'MdeModulePkg/Core/Pei/Image/Image.c')
-rw-r--r--MdeModulePkg/Core/Pei/Image/Image.c20
1 files changed, 5 insertions, 15 deletions
diff --git a/MdeModulePkg/Core/Pei/Image/Image.c b/MdeModulePkg/Core/Pei/Image/Image.c
index 0ef1995..03e1d86 100644
--- a/MdeModulePkg/Core/Pei/Image/Image.c
+++ b/MdeModulePkg/Core/Pei/Image/Image.c
@@ -1,7 +1,7 @@
/** @file
Pei Core Load Image Support
-Copyright (c) 2006 - 2008, Intel Corporation
+Copyright (c) 2006 - 2009, Intel Corporation
All rights reserved. This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License
which accompanies this distribution. The full text of the license may be found at
@@ -287,7 +287,9 @@ PeiLoadImageLoadImage (
Machine = PeCoffLoaderGetMachineType (Pe32Data);
if (!EFI_IMAGE_MACHINE_TYPE_SUPPORTED (Machine)) {
- return EFI_UNSUPPORTED;
+ if (!EFI_IMAGE_MACHINE_CROSS_TYPE_SUPPORTED (Machine)) {
+ return EFI_UNSUPPORTED;
+ }
}
if (ImageAddressArg != NULL) {
@@ -438,19 +440,7 @@ PeiLoadImage (
Index++;
} while (!EFI_ERROR (PpiStatus));
- //
- // If no instances reports EFI_SUCCESS, then build-in support for
- // the PE32+/TE XIP image format is used.
- //
- Status = PeiLoadImageLoadImage (
- PeiServices,
- FileHandle,
- NULL,
- NULL,
- EntryPoint,
- AuthenticationState
- );
- return Status;
+ return PpiStatus;
}