Fix an issue in page allocation.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2364 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
xli24 2007-02-12 03:52:20 +00:00
parent d958721a06
commit 7b7f863bfa
1 changed files with 1 additions and 1 deletions

View File

@ -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