diff options
author | qhuang8 <qhuang8@6f19259b-4bc3-4df7-8a09-765794883524> | 2009-08-11 15:45:16 +0000 |
---|---|---|
committer | qhuang8 <qhuang8@6f19259b-4bc3-4df7-8a09-765794883524> | 2009-08-11 15:45:16 +0000 |
commit | 8c519a565d02419ac325bef58bb63a974bbab1bd (patch) | |
tree | e90087417d5b904ce89eb5d52c447e7ac6e65553 /MdeModulePkg/Core | |
parent | e8b9799c9c48827165ad6b31837e1e4fc319acc3 (diff) | |
download | edk2-platforms-8c519a565d02419ac325bef58bb63a974bbab1bd.tar.xz |
1. Update IA32 PeiCore implementation to support load x64 image for EFI_PEI_LOAD_FILE_PPI.
2. Simplify the implementation of PeiLoadImage() in PeiCore to skip the function call of PeiLoadImageLoadImage() because PeiCore itself produce one instance of EFI_PEI_LOAD_FILE_PPI.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9045 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdeModulePkg/Core')
-rw-r--r-- | MdeModulePkg/Core/Pei/Image/Image.c | 20 |
1 files changed, 5 insertions, 15 deletions
diff --git a/MdeModulePkg/Core/Pei/Image/Image.c b/MdeModulePkg/Core/Pei/Image/Image.c index 0ef19952a0..03e1d86ad7 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;
}
|