summaryrefslogtreecommitdiff
path: root/MdeModulePkg/Core/Pei/Image
diff options
context:
space:
mode:
Diffstat (limited to 'MdeModulePkg/Core/Pei/Image')
-rw-r--r--MdeModulePkg/Core/Pei/Image/Image.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/MdeModulePkg/Core/Pei/Image/Image.c b/MdeModulePkg/Core/Pei/Image/Image.c
index c8bb2300a0..1985411285 100644
--- a/MdeModulePkg/Core/Pei/Image/Image.c
+++ b/MdeModulePkg/Core/Pei/Image/Image.c
@@ -112,6 +112,7 @@ GetImageReadFunction (
IN PE_COFF_LOADER_IMAGE_CONTEXT *ImageContext
)
{
+#if defined (MDE_CPU_IA32) || defined (MDE_CPU_X64)
PEI_CORE_INSTANCE *Private;
EFI_PHYSICAL_ADDRESS MemoryBuffer;
@@ -119,8 +120,7 @@ GetImageReadFunction (
MemoryBuffer = 0;
if (Private->PeiMemoryInstalled && (((Private->HobList.HandoffInformationTable->BootMode != BOOT_ON_S3_RESUME) && PcdGetBool (PcdShadowPeimOnBoot)) ||
- ((Private->HobList.HandoffInformationTable->BootMode == BOOT_ON_S3_RESUME) && PcdGetBool (PcdShadowPeimOnS3Boot))) &&
- (EFI_IMAGE_MACHINE_TYPE_SUPPORTED(EFI_IMAGE_MACHINE_X64) || EFI_IMAGE_MACHINE_TYPE_SUPPORTED(EFI_IMAGE_MACHINE_IA32))) {
+ ((Private->HobList.HandoffInformationTable->BootMode == BOOT_ON_S3_RESUME) && PcdGetBool (PcdShadowPeimOnS3Boot)))) {
//
// Shadow algorithm makes lots of non ANSI C assumptions and only works for IA32 and X64
// compilers that have been tested
@@ -136,7 +136,9 @@ GetImageReadFunction (
} else {
ImageContext->ImageRead = PeiImageRead;
}
-
+#else
+ ImageContext->ImageRead = PeiImageRead;
+#endif
return EFI_SUCCESS;
}
/**