summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorxli24 <xli24@6f19259b-4bc3-4df7-8a09-765794883524>2007-02-12 03:52:20 +0000
committerxli24 <xli24@6f19259b-4bc3-4df7-8a09-765794883524>2007-02-12 03:52:20 +0000
commit7b7f863bfac51ba12893afb329ee43d546b5f4cc (patch)
treecddb8620abde00ad1eabfeb9ca044f082dd8afd3
parentd958721a06dce3aa0fc941c115db86e3f91254f7 (diff)
downloadedk2-7b7f863bfac51ba12893afb329ee43d546b5f4cc.zip
edk2-7b7f863bfac51ba12893afb329ee43d546b5f4cc.tar.gz
edk2-7b7f863bfac51ba12893afb329ee43d546b5f4cc.tar.bz2
Fix an issue in page allocation.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2364 6f19259b-4bc3-4df7-8a09-765794883524
-rw-r--r--EdkModulePkg/Core/Dxe/Mem/Page.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/EdkModulePkg/Core/Dxe/Mem/Page.c b/EdkModulePkg/Core/Dxe/Mem/Page.c
index 4c8e9b8..47b4167 100644
--- a/EdkModulePkg/Core/Dxe/Mem/Page.c
+++ b/EdkModulePkg/Core/Dxe/Mem/Page.c
@@ -684,7 +684,7 @@ Returns:
//
// The list is empty, to allocate one page to refuel the list
//
- FreeDescriptorEntries = CoreAllocatePoolPages (EfiBootServicesData, 1, DEFAULT_PAGE_ALLOCATION);
+ FreeDescriptorEntries = CoreAllocatePoolPages (EfiBootServicesData, EFI_SIZE_TO_PAGES(DEFAULT_PAGE_ALLOCATION), DEFAULT_PAGE_ALLOCATION);
if(FreeDescriptorEntries != NULL) {
//
// Enque the free memmory map entries into the list