Fix physical page count overflow by using 64-bit type

This commit is contained in:
2025-12-22 23:32:54 +01:00
parent 643fd0d1e8
commit 7575526f07
3 changed files with 4 additions and 4 deletions

View File

@@ -34,7 +34,7 @@ ULONG_PTR MM::Pfn::LowestPhysicalPage = -1;
MMMEMORY_LAYOUT MM::Manager::MemoryLayout;
/* Number of physical pages */
ULONG MM::Pfn::NumberOfPhysicalPages;
ULONGLONG MM::Pfn::NumberOfPhysicalPages;
/* Number of system PTEs */
PFN_NUMBER MM::Manager::NumberOfSystemPtes;