]> git.proxmox.com Git - mirror_edk2.git/commitdiff
Fix an issue in page allocation.
authorxli24 <xli24@6f19259b-4bc3-4df7-8a09-765794883524>
Mon, 12 Feb 2007 03:52:20 +0000 (03:52 +0000)
committerxli24 <xli24@6f19259b-4bc3-4df7-8a09-765794883524>
Mon, 12 Feb 2007 03:52:20 +0000 (03:52 +0000)
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2364 6f19259b-4bc3-4df7-8a09-765794883524

EdkModulePkg/Core/Dxe/Mem/Page.c

index 4c8e9b8334d8175184b07bc6a9eac95a7246aa88..47b41671bd13ce592bf3e55c49b07e556bda06af 100644 (file)
@@ -684,7 +684,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