]> git.proxmox.com Git - mirror_edk2.git/blobdiff - EdkModulePkg/Core/Dxe/Mem/Page.c
Update MDE and EdkModule packages for ICC build with /W4 /WX /Ox switches, for some...
[mirror_edk2.git] / EdkModulePkg / Core / Dxe / Mem / Page.c
index 4c8e9b8334d8175184b07bc6a9eac95a7246aa88..c4f3274906b553382380873b0943e0b88b73b0ed 100644 (file)
@@ -134,8 +134,9 @@ RemoveMemoryMapEntry (
   \r
 STATIC\r
 MEMORY_MAP *\r
-AllocateMemoryMapEntry ( \r
- );\r
+AllocateMemoryMapEntry (\r
+  VOID\r
+  );\r
  \r
 VOID\r
 CoreAcquireMemoryLock (\r
@@ -651,9 +652,11 @@ Returns:
   }\r
 }\r
 \r
+STATIC\r
 MEMORY_MAP *\r
-AllocateMemoryMapEntry ( \r
- )\r
+AllocateMemoryMapEntry (\r
+  VOID\r
+  )\r
 /*++\r
 \r
 Routine Description:\r
@@ -684,7 +687,7 @@ Returns:
     // \r
     // The list is empty, to allocate one page to refuel the list\r
     //\r
-    FreeDescriptorEntries = CoreAllocatePoolPages (EfiBootServicesData, 1, DEFAULT_PAGE_ALLOCATION);\r
+    FreeDescriptorEntries = CoreAllocatePoolPages (EfiBootServicesData, EFI_SIZE_TO_PAGES(DEFAULT_PAGE_ALLOCATION), DEFAULT_PAGE_ALLOCATION);\r
     if(FreeDescriptorEntries != NULL) {\r
       //\r
       // Enque the free memmory map entries into the list\r