From 9a34a5f7352d207b9cb692b42a4cb898d11f2eed Mon Sep 17 00:00:00 2001 From: Aiken Harris Date: Tue, 24 Mar 2026 16:54:17 +0100 Subject: [PATCH] Precommit page map to allocate memory --- boot/xtldr/modules/xtos_o/xtos.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/boot/xtldr/modules/xtos_o/xtos.cc b/boot/xtldr/modules/xtos_o/xtos.cc index bc801a5..3275378 100644 --- a/boot/xtldr/modules/xtos_o/xtos.cc +++ b/boot/xtldr/modules/xtos_o/xtos.cc @@ -409,6 +409,9 @@ Xtos::InitializeLoaderBlock(IN PXTBL_PAGE_MAPPING PageMap, } FbPages = EFI_SIZE_TO_PAGES(FbSize); + /* Precommit page map to allocate memory */ + XtLdrProtocol->Memory.CommitPageMap(PageMap); + /* Calculate number of pages needed for memory descriptor list */ DescriptorPages = EFI_SIZE_TO_PAGES(PageMap->MapSize * sizeof(LOADER_MEMORY_DESCRIPTOR) * 2);