Fix 4KB pages allocation
All checks were successful
ci/woodpecker/push/build Pipeline was successful
All checks were successful
ci/woodpecker/push/build Pipeline was successful
This commit is contained in:
parent
bef6b5a589
commit
4a364212de
@ -165,7 +165,7 @@ BlDbgPrint(IN PUINT16 Format,
|
|||||||
/**
|
/**
|
||||||
* This routine allocates one or more 4KB pages.
|
* This routine allocates one or more 4KB pages.
|
||||||
*
|
*
|
||||||
* @param Size
|
* @param Pages
|
||||||
* The number of contiguous 4KB pages to allocate.
|
* The number of contiguous 4KB pages to allocate.
|
||||||
*
|
*
|
||||||
* @param Memory
|
* @param Memory
|
||||||
@ -176,11 +176,10 @@ BlDbgPrint(IN PUINT16 Format,
|
|||||||
* @since XT 1.0
|
* @since XT 1.0
|
||||||
*/
|
*/
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
BlEfiMemoryAllocatePages(IN UINT64 Size,
|
BlEfiMemoryAllocatePages(IN UINT64 Pages,
|
||||||
OUT PEFI_PHYSICAL_ADDRESS Memory)
|
OUT PEFI_PHYSICAL_ADDRESS Memory)
|
||||||
{
|
{
|
||||||
return EfiSystemTable->BootServices->AllocatePages(AllocateAnyPages, EfiRuntimeServicesData,
|
return EfiSystemTable->BootServices->AllocatePages(AllocateAnyPages, EfiLoaderData, Pages, Memory);
|
||||||
EFI_SIZE_TO_PAGES(Size), Memory);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -207,7 +206,7 @@ BlEfiMemoryAllocatePool(IN UINT_PTR Size,
|
|||||||
/**
|
/**
|
||||||
* This routine frees memory pages.
|
* This routine frees memory pages.
|
||||||
*
|
*
|
||||||
* @param Size
|
* @param Pages
|
||||||
* The number of contiguous 4 KB pages to free.
|
* The number of contiguous 4 KB pages to free.
|
||||||
*
|
*
|
||||||
* @param Memory
|
* @param Memory
|
||||||
@ -218,10 +217,10 @@ BlEfiMemoryAllocatePool(IN UINT_PTR Size,
|
|||||||
* @since XT 1.0
|
* @since XT 1.0
|
||||||
*/
|
*/
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
BlEfiMemoryFreePages(IN UINT64 Size,
|
BlEfiMemoryFreePages(IN UINT64 Pages,
|
||||||
IN EFI_PHYSICAL_ADDRESS Memory)
|
IN EFI_PHYSICAL_ADDRESS Memory)
|
||||||
{
|
{
|
||||||
return EfiSystemTable->BootServices->FreePages(Memory, Size);
|
return EfiSystemTable->BootServices->FreePages(Memory, Pages);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user