Harden PFN initialization and expose page count

This commit is contained in:
2025-12-13 21:01:13 +01:00
parent 17b5649362
commit eae48320f3
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");