[NTOSKRNL] MmTotalCommitLimit and MmTotalCommitLimitMaximum are in pages, not bytes

This commit is contained in:
Pierre Schweitzer 2018-08-16 18:40:23 +02:00
parent c8d51bb87a
commit 7f0ad923d2
No known key found for this signature in database
GPG key ID: 7545556C3D585B0B

View 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? */