Cleanup the code

This commit is contained in:
Rafal Kupiec 2024-05-27 22:18:55 +02:00
parent 7f8846f23d
commit f968eb21fd
Signed by: belliash
GPG Key ID: 4E829243E0CFE6B4

View File

@ -9,8 +9,6 @@
#include <xtos.h>
#define HAL_MEMORY 0xFFC00000
/**
* Maps the page table for hardware layer addess space.
*
@ -25,12 +23,9 @@ XTCDECL
EFI_STATUS
XtMapHalMemory(IN PXTBL_PAGE_MAPPING PageMap)
{
XTSTATUS Status;
EFI_PHYSICAL_ADDRESS Address;
PHARDWARE_PTE Pml3;
ULONGLONG PmlIndex;
ULONG Index;
PHARDWARE_PTE PdeBase;
XTSTATUS Status;
/* Allocate memory */
Status = XtLdrProtocol->Memory.AllocatePages(1, &Address);