From 54e75c9345d1e8a9e8f368f71d7d23f584ca01c8 Mon Sep 17 00:00:00 2001 From: Aiken Harris Date: Thu, 29 Jan 2026 22:29:02 +0100 Subject: [PATCH] Fix PFN database size calculation call sites --- xtoskrnl/mm/amd64/mmgr.cc | 2 +- xtoskrnl/mm/i686/mmgr.cc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/xtoskrnl/mm/amd64/mmgr.cc b/xtoskrnl/mm/amd64/mmgr.cc index ff6551a..a128cb6 100644 --- a/xtoskrnl/mm/amd64/mmgr.cc +++ b/xtoskrnl/mm/amd64/mmgr.cc @@ -29,7 +29,7 @@ MM::Manager::InitializeMemoryLayout(VOID) PagedPoolSize = PteCount * PtesPerPage * MM_PAGE_SIZE; /* Retrieve the PFN database size */ - MM::Pfn::GetPfnDatabaseSize(&MemoryLayout.PfnDatabaseSize); + MM::Pfn::ComputePfnDatabaseSize(&MemoryLayout.PfnDatabaseSize); /* Define the number of system PTEs */ NumberOfSystemPtes = MM_DEFAULT_NUMBER_SYSTEM_PTES; diff --git a/xtoskrnl/mm/i686/mmgr.cc b/xtoskrnl/mm/i686/mmgr.cc index cc0032a..6a060c9 100644 --- a/xtoskrnl/mm/i686/mmgr.cc +++ b/xtoskrnl/mm/i686/mmgr.cc @@ -48,7 +48,7 @@ MM::Manager::InitializeMemoryLayout(VOID) PagedPoolSize = PteCount * PtesPerPage * MM_PAGE_SIZE; /* Retrieve the PFN database size */ - MM::Pfn::GetPfnDatabaseSize(&MemoryLayout.PfnDatabaseSize); + MM::Pfn::ComputePfnDatabaseSize(&MemoryLayout.PfnDatabaseSize); /* Check if 3-level paging (PAE) is enabled */ if(MM::Paging::GetXpaStatus())