From 9a5ef6fc004e0cd7c9ceb0535d05c08671a05e74 Mon Sep 17 00:00:00 2001 From: Aiken Harris Date: Sat, 7 Feb 2026 20:01:17 +0100 Subject: [PATCH] Map PDE and PTE ranges for i686 non-paged pool --- xtoskrnl/mm/i686/alloc.cc | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/xtoskrnl/mm/i686/alloc.cc b/xtoskrnl/mm/i686/alloc.cc index 0987553..1189eef 100644 --- a/xtoskrnl/mm/i686/alloc.cc +++ b/xtoskrnl/mm/i686/alloc.cc @@ -13,5 +13,13 @@ XTAPI VOID MM::Allocator::InitializeNonPagedPool(VOID) { + PMMMEMORY_LAYOUT MemoryLayout; UNIMPLEMENTED; + + /* Retrieve memory layout */ + MemoryLayout = MM::Manager::GetMemoryLayout(); + + /* Map PDE and PTE for the base of the non-paged pool */ + MM::Pte::MapPDE(MemoryLayout->NonPagedPoolStart, (PCHAR)MemoryLayout->NonPagedPoolEnd - 1, MM::Pte::GetValidPte()); + MM::Pte::MapPTE(MemoryLayout->NonPagedPoolStart, (PCHAR)MemoryLayout->NonPagedPoolEnd - 1, MM::Pte::GetValidPte()); }