MAX_POOL_SIZE was hardcoded to 0xFFFFFF00. MAX_POOL_SIZE was replaced with MAX_ADDRES...
[mirror_edk2.git] / EdkModulePkg / Core / Dxe / Mem / pool.c
index 2f4669e..3201a97 100644 (file)
@@ -62,7 +62,7 @@ typedef struct {
 \r
 #define MAX_POOL_LIST       SIZE_TO_LIST(DEFAULT_PAGE_ALLOCATION)\r
 \r
-#define MAX_POOL_SIZE      0xffffff00\r
+#define MAX_POOL_SIZE     (MAX_ADDRESS - POOL_OVERHEAD)\r
 \r
 //\r
 // Globals\r