From e646ef213702fa7bf40330d497c10d26787ab188 Mon Sep 17 00:00:00 2001 From: Mikhail Krichanov Date: Wed, 3 Jul 2024 16:48:18 +0300 Subject: [PATCH] Rebase: Forgotten changes. --- MdeModulePkg/Core/Dxe/Misc/MemoryProtection.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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;