Harden PFN initialization and expose page count

This commit is contained in:
2025-12-13 21:01:13 +01:00
committed by CodingWorkshop Signing Team
parent f371b305ad
commit 6f824c55bb
4 changed files with 45 additions and 22 deletions

View File

@@ -25,7 +25,7 @@ MM::Manager::InitializeMemoryManager(VOID)
MM::Pfn::ScanMemoryDescriptors();
/* Check if there are enough physical pages */
if(NumberOfPhysicalPages < MM_MINIMUM_PHYSICAL_PAGES)
if(MM::Pfn::GetNumberOfPhysicalPages() < MM_MINIMUM_PHYSICAL_PAGES)
{
/* Insufficient physical pages, kernel panic */
DebugPrint(L"Insufficient physical pages! Install additional memory\n");