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:
@@ -352,9 +352,9 @@ CoreAllocatePoolI (
|
||||
PoolType == EfiRuntimeServicesCode ||
|
||||
PoolType == EfiRuntimeServicesData) {
|
||||
|
||||
Granularity = EFI_ACPI_RUNTIME_PAGE_ALLOCATION_ALIGNMENT;
|
||||
Granularity = RUNTIME_PAGE_ALLOCATION_GRANULARITY;
|
||||
} else {
|
||||
Granularity = DEFAULT_PAGE_ALLOCATION;
|
||||
Granularity = DEFAULT_PAGE_ALLOCATION_GRANULARITY;
|
||||
}
|
||||
|
||||
//
|
||||
@@ -643,9 +643,9 @@ CoreFreePoolI (
|
||||
Head->Type == EfiRuntimeServicesCode ||
|
||||
Head->Type == EfiRuntimeServicesData) {
|
||||
|
||||
Granularity = EFI_ACPI_RUNTIME_PAGE_ALLOCATION_ALIGNMENT;
|
||||
Granularity = RUNTIME_PAGE_ALLOCATION_GRANULARITY;
|
||||
} else {
|
||||
Granularity = DEFAULT_PAGE_ALLOCATION;
|
||||
Granularity = DEFAULT_PAGE_ALLOCATION_GRANULARITY;
|
||||
}
|
||||
|
||||
if (PoolType != NULL) {
|
||||
|
Reference in New Issue
Block a user