From 88321b5f4daec5fa5571aab7ce52ef52937ce050 Mon Sep 17 00:00:00 2001 From: Rafal Kupiec Date: Thu, 18 Jan 2024 23:10:47 +0100 Subject: [PATCH] Pass virtual memory area address by reference --- xtldr/modules/xtos_o/xtos.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xtldr/modules/xtos_o/xtos.c b/xtldr/modules/xtos_o/xtos.c index 7459b23..a1f6f10 100644 --- a/xtldr/modules/xtos_o/xtos.c +++ b/xtldr/modules/xtos_o/xtos.c @@ -191,7 +191,7 @@ XtpBootSequence(IN PEFI_FILE_HANDLE BootDir, VirtualAddress = (PVOID)(KSEG0_BASE + KSEG0_KERNEL_BASE); /* Initialize virtual memory mappings */ - XtLdrProtocol->Memory.InitializePageMap(&PageMap, VirtualMemoryArea, 3, Size4K); + XtLdrProtocol->Memory.InitializePageMap(&PageMap, &VirtualMemoryArea, 3, Size4K); Status = XtLdrProtocol->Memory.MapEfiMemory(&PageMap, NULL); if(Status != STATUS_EFI_SUCCESS)