summaryrefslogtreecommitdiff
path: root/MdeModulePkg/Core/Pei/Image
diff options
context:
space:
mode:
authorlgao4 <lgao4@6f19259b-4bc3-4df7-8a09-765794883524>2007-10-31 11:46:42 +0000
committerlgao4 <lgao4@6f19259b-4bc3-4df7-8a09-765794883524>2007-10-31 11:46:42 +0000
commite98cd821ebedd6472c12738bd53dc7cfd02bb4fb (patch)
tree26dfd899c770d7e02e62e134e23eab15a8a2e13e /MdeModulePkg/Core/Pei/Image
parentd28746d23a63ebf1ed7a9dee2a9bf1a2860aadcb (diff)
downloadedk2-platforms-e98cd821ebedd6472c12738bd53dc7cfd02bb4fb.tar.xz
Print real entry point for IPF image.
Print DxeCore Entry point and image address. Set FileHandle = NULL when not found FFS file in PeiService PeiFfsFindNextFile. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@4254 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdeModulePkg/Core/Pei/Image')
-rw-r--r--MdeModulePkg/Core/Pei/Image/Image.c19
1 files changed, 15 insertions, 4 deletions
diff --git a/MdeModulePkg/Core/Pei/Image/Image.c b/MdeModulePkg/Core/Pei/Image/Image.c
index c38fa56705..4035c75652 100644
--- a/MdeModulePkg/Core/Pei/Image/Image.c
+++ b/MdeModulePkg/Core/Pei/Image/Image.c
@@ -406,16 +406,27 @@ Returns:
*ImageSizeArg = ImageSize;
}
- //
- // Print debug message: Loading PEIM at 0x12345678 EntryPoint=0x12345688 Driver.efi
- //
- DEBUG ((EFI_D_INFO | EFI_D_LOAD, "Loading PEIM at 0x%08x EntryPoint=0x%08x ", (UINTN) ImageAddress, *EntryPoint));
DEBUG_CODE_BEGIN ();
CHAR8 *AsciiString;
CHAR8 AsciiBuffer[512];
INT32 Index;
INT32 Index1;
+
+ //
+ // Print debug message: Loading PEIM at 0x12345678 EntryPoint=0x12345688 Driver.efi
+ //
+ if (Machine != IMAGE_FILE_MACHINE_IA64) {
+ DEBUG ((EFI_D_INFO | EFI_D_LOAD, "Loading PEIM at 0x%08x EntryPoint=0x%08x ", (UINTN) ImageAddress, *EntryPoint));
+ } else {
+ //
+ // For IPF Image, the real entry point should be print.
+ //
+ DEBUG ((EFI_D_INFO | EFI_D_LOAD, "Loading PEIM at 0x%08x EntryPoint=0x%08x ", (UINTN) ImageAddress, (UINTN) (*(UINT64 *)(UINTN)*EntryPoint)));
+ }
+ //
+ // Print Module Name by PeImage PDB file name.
+ //
AsciiString = PeCoffLoaderGetPdbPointer (Pe32Data);
if (AsciiString != NULL) {