forked from xt-sys/exectos
Store page map level
This commit is contained in:
@@ -23,3 +23,6 @@ ULONG MmNumberOfPhysicalPages;
|
||||
|
||||
/* Old biggest free memory descriptor */
|
||||
LOADER_MEMORY_MAPPING MmOldFreeDescriptor;
|
||||
|
||||
/* Page Map Level */
|
||||
ULONG MmPageMapLevel;
|
||||
|
@@ -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.
|
||||
|
Reference in New Issue
Block a user