From ba4ac6cec811255562acf565600ef2804e6a7195 Mon Sep 17 00:00:00 2001 From: Aiken Harris Date: Sun, 1 Feb 2026 10:18:13 +0100 Subject: [PATCH] Fix PFN truncation on i686 with PAE enabled --- boot/xtldr/arch/i686/memory.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/boot/xtldr/arch/i686/memory.cc b/boot/xtldr/arch/i686/memory.cc index a6c65da..877a8ac 100644 --- a/boot/xtldr/arch/i686/memory.cc +++ b/boot/xtldr/arch/i686/memory.cc @@ -317,7 +317,7 @@ Memory::MapPage(IN PXTBL_PAGE_MAPPING PageMap, IN ULONGLONG PhysicalAddress, IN ULONGLONG NumberOfPages) { - SIZE_T PageFrameNumber; + ULONGLONG PageFrameNumber; PVOID Pml1, Pml2, Pml3; SIZE_T Pml1Entry, Pml2Entry, Pml3Entry; PHARDWARE_LEGACY_PTE LegacyPmlTable;