diff --git a/MdeModulePkg/Core/Dxe/Misc/MemoryProtection.c b/MdeModulePkg/Core/Dxe/Misc/MemoryProtection.c index d251265ffb..5b0fe44a23 100644 --- a/MdeModulePkg/Core/Dxe/Misc/MemoryProtection.c +++ b/MdeModulePkg/Core/Dxe/Misc/MemoryProtection.c @@ -135,18 +135,18 @@ IsMemoryProtectionSectionAligned ( switch (MemoryType) { case EfiRuntimeServicesCode: case EfiACPIMemoryNVS: + case EfiReservedMemoryType: PageAlignment = RUNTIME_PAGE_ALLOCATION_GRANULARITY; break; case EfiRuntimeServicesData: - case EfiACPIReclaimMemory: ASSERT (FALSE); PageAlignment = RUNTIME_PAGE_ALLOCATION_GRANULARITY; break; case EfiBootServicesCode: case EfiLoaderCode: - case EfiReservedMemoryType: PageAlignment = EFI_PAGE_SIZE; break; + case EfiACPIReclaimMemory: default: ASSERT (FALSE); PageAlignment = EFI_PAGE_SIZE;