Cleanup the code
All checks were successful
Builds / ExectOS (amd64) (push) Successful in 35s
Builds / ExectOS (i686) (push) Successful in 34s

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