Store page map level
Todas as verificações foram bem sucedidas
Builds / ExectOS (i686) (push) Successful in 32s
Builds / ExectOS (amd64) (push) Successful in 33s

Esse commit está contido em:
2024-04-07 17:49:24 +02:00
commit 7193e698f1
5 arquivos alterados com 13 adições e 1 exclusões

Ver arquivo

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

Ver arquivo

@@ -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.