Refactor part 1
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
* PROJECT: ExectOS
|
||||
* COPYRIGHT: See COPYING.md in the top level directory
|
||||
* FILE: xtldr/memory.c
|
||||
* DESCRIPTION: XT Boot Manager EFI memory management
|
||||
* DESCRIPTION: XT Boot Loader memory management
|
||||
* DEVELOPERS: Rafal Kupiec <belliash@codingworkshop.eu.org>
|
||||
*/
|
||||
|
||||
@@ -24,8 +24,8 @@
|
||||
*/
|
||||
XTCDECL
|
||||
EFI_STATUS
|
||||
BmAllocateEfiPages(IN UINT64 Pages,
|
||||
OUT PEFI_PHYSICAL_ADDRESS Memory)
|
||||
BlMemoryAllocatePages(IN UINT64 Pages,
|
||||
OUT PEFI_PHYSICAL_ADDRESS Memory)
|
||||
{
|
||||
return EfiSystemTable->BootServices->AllocatePages(AllocateAnyPages, EfiLoaderData, Pages, Memory);
|
||||
}
|
||||
@@ -45,8 +45,8 @@ BmAllocateEfiPages(IN UINT64 Pages,
|
||||
*/
|
||||
XTCDECL
|
||||
EFI_STATUS
|
||||
BmAllocateEfiPool(IN UINT_PTR Size,
|
||||
OUT PVOID *Memory)
|
||||
BlMemoryAllocatePool(IN UINT_PTR Size,
|
||||
OUT PVOID *Memory)
|
||||
{
|
||||
/* Allocate pool */
|
||||
return EfiSystemTable->BootServices->AllocatePool(EfiLoaderData, Size, Memory);
|
||||
@@ -67,8 +67,8 @@ BmAllocateEfiPool(IN UINT_PTR Size,
|
||||
*/
|
||||
XTCDECL
|
||||
EFI_STATUS
|
||||
BmFreeEfiPages(IN UINT64 Pages,
|
||||
IN EFI_PHYSICAL_ADDRESS Memory)
|
||||
BlMemoreFreePages(IN UINT64 Pages,
|
||||
IN EFI_PHYSICAL_ADDRESS Memory)
|
||||
{
|
||||
return EfiSystemTable->BootServices->FreePages(Memory, Pages);
|
||||
}
|
||||
@@ -85,7 +85,7 @@ BmFreeEfiPages(IN UINT64 Pages,
|
||||
*/
|
||||
XTCDECL
|
||||
EFI_STATUS
|
||||
BmFreeEfiPool(IN PVOID Memory)
|
||||
BlMemoryFreePool(IN PVOID Memory)
|
||||
{
|
||||
/* Free pool */
|
||||
return EfiSystemTable->BootServices->FreePool(Memory);
|
||||
|
||||
Reference in New Issue
Block a user