summaryrefslogtreecommitdiff
path: root/EdkModulePkg/Core/Pei
diff options
context:
space:
mode:
authorlgao4 <lgao4@6f19259b-4bc3-4df7-8a09-765794883524>2006-06-23 14:45:44 +0000
committerlgao4 <lgao4@6f19259b-4bc3-4df7-8a09-765794883524>2006-06-23 14:45:44 +0000
commit2d10530b2900b58ad5a39d7fec219e9a63df0d48 (patch)
treeea147476745bc1053ab2bae41f584ec662343a94 /EdkModulePkg/Core/Pei
parent4276d5dacfd4812abc1d7a1bd1da995d7002ee9e (diff)
downloadedk2-2d10530b2900b58ad5a39d7fec219e9a63df0d48.zip
edk2-2d10530b2900b58ad5a39d7fec219e9a63df0d48.tar.gz
edk2-2d10530b2900b58ad5a39d7fec219e9a63df0d48.tar.bz2
Fix Buger in this file to process the ffs file that only contain one compressed section.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@617 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'EdkModulePkg/Core/Pei')
-rw-r--r--EdkModulePkg/Core/Pei/Image/Image.c12
1 files changed, 3 insertions, 9 deletions
diff --git a/EdkModulePkg/Core/Pei/Image/Image.c b/EdkModulePkg/Core/Pei/Image/Image.c
index 8fd7197..5edc847 100644
--- a/EdkModulePkg/Core/Pei/Image/Image.c
+++ b/EdkModulePkg/Core/Pei/Image/Image.c
@@ -50,10 +50,6 @@ Returns:
EFI_STATUS Status;
VOID *Pe32Data;
EFI_PEI_FV_FILE_LOADER_PPI *FvLoadFilePpi;
-//#ifdef EFI_NT_EMULATOR
-// EFI_PEI_PPI_DESCRIPTOR *PpiDescriptor;
-// NT_PEI_LOAD_FILE_PPI *PeiNtService;
-//#endif
EFI_PHYSICAL_ADDRESS ImageAddress;
UINT64 ImageSize;
EFI_PHYSICAL_ADDRESS ImageEntryPoint;
@@ -107,12 +103,10 @@ Returns:
}
//
- // Retrieve the entry point from the PE/COFF image header
+ // Got the entry point from ImageEntryPoint
//
- Status = PeCoffLoaderGetEntryPoint ((VOID *)(UINTN)ImageAddress, EntryPoint);
- if (EFI_ERROR (Status)) {
- return EFI_NOT_FOUND;
- }
+ *EntryPoint = (VOID *) ((UINTN) ImageEntryPoint);
+ return EFI_SUCCESS;
} else {
//
// Retrieve the entry point from the TE image header