MdeModulePkg/DxeCore: switch to MdePkg allocation granularity macros
Remove the local definitions for the default and runtime page allocation granularity macros, and switch to the new MdePkg versions. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org> Reviewed-by: Jiewen Yao <jiewen.yao@intel.com> Reviewed-by: Liming Gao <liming.gao@intel.com>
This commit is contained in:
@@ -344,12 +344,12 @@ IsMemoryProtectionSectionAligned (
|
||||
switch (MemoryType) {
|
||||
case EfiRuntimeServicesCode:
|
||||
case EfiACPIMemoryNVS:
|
||||
PageAlignment = EFI_ACPI_RUNTIME_PAGE_ALLOCATION_ALIGNMENT;
|
||||
PageAlignment = RUNTIME_PAGE_ALLOCATION_GRANULARITY;
|
||||
break;
|
||||
case EfiRuntimeServicesData:
|
||||
case EfiACPIReclaimMemory:
|
||||
ASSERT (FALSE);
|
||||
PageAlignment = EFI_ACPI_RUNTIME_PAGE_ALLOCATION_ALIGNMENT;
|
||||
PageAlignment = RUNTIME_PAGE_ALLOCATION_GRANULARITY;
|
||||
break;
|
||||
case EfiBootServicesCode:
|
||||
case EfiLoaderCode:
|
||||
|
Reference in New Issue
Block a user