From f968eb21fd9aea0856411ea1a9f0e227fb21f09d Mon Sep 17 00:00:00 2001 From: Rafal Kupiec Date: Mon, 27 May 2024 22:18:55 +0200 Subject: [PATCH] Cleanup the code --- xtldr/modules/xtos_o/i686/memory.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/xtldr/modules/xtos_o/i686/memory.c b/xtldr/modules/xtos_o/i686/memory.c index fc1975c..9a0df47 100644 --- a/xtldr/modules/xtos_o/i686/memory.c +++ b/xtldr/modules/xtos_o/i686/memory.c @@ -9,8 +9,6 @@ #include -#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);