[NTOSKRNL] MmTotalCommitLimit and MmTotalCommitLimitMaximum are in pages, not bytes
authorPierre Schweitzer <pierre@reactos.org>
Thu, 16 Aug 2018 16:40:23 +0000 (18:40 +0200)
committerPierre Schweitzer <pierre@reactos.org>
Thu, 16 Aug 2018 16:40:23 +0000 (18:40 +0200)
ntoskrnl/mm/ARM3/mminit.c

index e8cf1dc..217aa65 100644 (file)
@@ -2256,7 +2256,7 @@ MmArmInitSystem(IN ULONG Phase,
         ExInitializePushLock(&MmSystemCacheWs.WorkingSetMutex);
 
         /* Set commit limit */
-        MmTotalCommitLimit = 2 * _1GB;
+        MmTotalCommitLimit = (2 * _1GB) >> PAGE_SHIFT;
         MmTotalCommitLimitMaximum = MmTotalCommitLimit;
 
         /* Has the allocation fragment been setup? */