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:
@@ -123,31 +123,6 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
||||
///
|
||||
#define DEPEX_STACK_SIZE_INCREMENT 0x1000
|
||||
|
||||
#if defined (MDE_CPU_IPF)
|
||||
///
|
||||
/// For Itanium machines make the default allocations 8K aligned
|
||||
///
|
||||
#define EFI_ACPI_RUNTIME_PAGE_ALLOCATION_ALIGNMENT (EFI_PAGE_SIZE * 2)
|
||||
#define DEFAULT_PAGE_ALLOCATION (EFI_PAGE_SIZE * 2)
|
||||
|
||||
#elif defined (MDE_CPU_AARCH64)
|
||||
///
|
||||
/// 64-bit ARM systems allow the OS to execute with 64 KB page size,
|
||||
/// so for improved interoperability with the firmware, align the
|
||||
/// runtime regions to 64 KB as well
|
||||
///
|
||||
#define EFI_ACPI_RUNTIME_PAGE_ALLOCATION_ALIGNMENT (SIZE_64KB)
|
||||
#define DEFAULT_PAGE_ALLOCATION (EFI_PAGE_SIZE)
|
||||
|
||||
#else
|
||||
///
|
||||
/// For generic EFI machines make the default allocations 4K aligned
|
||||
///
|
||||
#define EFI_ACPI_RUNTIME_PAGE_ALLOCATION_ALIGNMENT (EFI_PAGE_SIZE)
|
||||
#define DEFAULT_PAGE_ALLOCATION (EFI_PAGE_SIZE)
|
||||
|
||||
#endif
|
||||
|
||||
typedef struct {
|
||||
EFI_GUID *ProtocolGuid;
|
||||
VOID **Protocol;
|
||||
|
Reference in New Issue
Block a user