Precommit page map to allocate memory

This commit is contained in:
2026-03-24 16:54:17 +01:00
committed by CodingWorkshop Signing Team
parent 3ca3a86c0f
commit d1a4b378b1

View File

@@ -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);