Store page map level

This commit is contained in:
2024-04-07 17:49:24 +02:00
parent 388ac1a8c2
commit 7193e698f1
5 changed files with 13 additions and 1 deletions

View File

@@ -23,3 +23,6 @@ ULONG MmNumberOfPhysicalPages;
/* Old biggest free memory descriptor */
LOADER_MEMORY_MAPPING MmOldFreeDescriptor;
/* Page Map Level */
ULONG MmPageMapLevel;

View File

@@ -31,6 +31,9 @@ MmInitializeMemoryManager(VOID)
KePanic(0);
}
/* Store Page Map Level */
MmPageMapLevel = KeInitializationBlock->LoaderInformation.PageMapLevel;
/* Proceed with architecture specific initialization */
MmpInitializeArchitecture();
}
@@ -108,7 +111,6 @@ MmpScanMemoryDescriptors(VOID)
/* Store original free descriptor */
RtlCopyMemory(&MmOldFreeDescriptor, MmFreeDescriptor, sizeof(LOADER_MEMORY_MAPPING));
}
/** Checks whether the specified memory type should be considered as free.