Refactor part 1
Some checks failed
Builds / ExectOS (amd64) (push) Failing after 14s
Builds / ExectOS (i686) (push) Failing after 14s

This commit is contained in:
2023-12-03 16:04:12 +01:00
parent 55bd9e326f
commit fce8a50321
10 changed files with 121 additions and 104 deletions

View File

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