Unify naming convention and switch to ULONG in memory map related routines

This commit is contained in:
2024-07-06 22:59:10 +02:00
parent cc0edeeb47
commit 6bcf3e134f
5 changed files with 18 additions and 18 deletions

View File

@@ -12,7 +12,7 @@
/**
* This routine allocates one or more 4KB pages.
*
* @param Pages
* @param NumberOfPages
* The number of contiguous 4KB pages to allocate.
*
* @param Memory
@@ -24,10 +24,10 @@
*/
XTCDECL
EFI_STATUS
BlAllocateMemoryPages(IN ULONGLONG Pages,
BlAllocateMemoryPages(IN ULONGLONG NumberOfPages,
OUT PEFI_PHYSICAL_ADDRESS Memory)
{
return EfiSystemTable->BootServices->AllocatePages(AllocateAnyPages, EfiLoaderData, Pages, Memory);
return EfiSystemTable->BootServices->AllocatePages(AllocateAnyPages, EfiLoaderData, NumberOfPages, Memory);
}
/**
@@ -55,7 +55,7 @@ BlAllocateMemoryPool(IN UINT_PTR Size,
/**
* This routine frees memory pages.
*
* @param Pages
* @param NumberOfPages
* The number of contiguous 4 KB pages to free.
*
* @param Memory
@@ -67,10 +67,10 @@ BlAllocateMemoryPool(IN UINT_PTR Size,
*/
XTCDECL
EFI_STATUS
BlFreeMemoryPages(IN ULONGLONG Pages,
BlFreeMemoryPages(IN ULONGLONG NumberOfPages,
IN EFI_PHYSICAL_ADDRESS Memory)
{
return EfiSystemTable->BootServices->FreePages(Memory, Pages);
return EfiSystemTable->BootServices->FreePages(Memory, NumberOfPages);
}
/**