//\r
extern EFI_PHYSICAL_ADDRESS mMmMemLibInternalMaximumSupportAddress;\r
\r
-#ifdef MDE_CPU_AARCH64\r
-#define ARM_PHYSICAL_ADDRESS_BITS 36\r
-#endif\r
-#ifdef MDE_CPU_ARM\r
-#define ARM_PHYSICAL_ADDRESS_BITS 32\r
-#endif\r
-\r
/**\r
Calculate and save the maximum support address.\r
\r
VOID\r
)\r
{\r
- UINT8 PhysicalAddressBits;\r
-\r
- PhysicalAddressBits = ARM_PHYSICAL_ADDRESS_BITS;\r
+ mMmMemLibInternalMaximumSupportAddress = MAX_ALLOC_ADDRESS;\r
\r
- //\r
- // Save the maximum support address in one global variable\r
- //\r
- mMmMemLibInternalMaximumSupportAddress = (EFI_PHYSICAL_ADDRESS)(UINTN)(LShiftU64 (1, PhysicalAddressBits) - 1);\r
DEBUG ((DEBUG_INFO, "mMmMemLibInternalMaximumSupportAddress = 0x%lx\n", mMmMemLibInternalMaximumSupportAddress));\r
}\r
\r