-\r
- DEBUG ((EFI_D_INFO | EFI_D_LOAD, "Loading driver at 0x%10p EntryPoint=0x%10p ", (VOID *)(UINTN)Image->ImageContext.ImageAddress, (VOID *)(UINTN)Image->ImageContext.EntryPoint));\r
+ \r
+ if (Image->ImageContext.Machine != IMAGE_FILE_MACHINE_IA64) {\r
+ DEBUG ((EFI_D_INFO | EFI_D_LOAD, \r
+ "Loading driver at 0x%10p EntryPoint=0x%10p ", \r
+ (VOID *)(UINTN)Image->ImageContext.ImageAddress, \r
+ (VOID *)(UINTN)Image->ImageContext.EntryPoint));\r
+ } else {\r
+ //\r
+ // For IPF Image, the real entry point should be print.\r
+ // \r
+ DEBUG ((EFI_D_INFO | EFI_D_LOAD, \r
+ "Loading driver at 0x%10p EntryPoint=0x%10p ", \r
+ (VOID *)(UINTN)Image->ImageContext.ImageAddress, \r
+ (VOID *)(UINTN)(*(UINT64 *)(UINTN)Image->ImageContext.EntryPoint)));\r
+ }\r
+ \r
+ //\r
+ // Print Module Name by Pdb file path\r
+ //\r