[NTOS:MM] Assert PFN lock ownership in MiInsertPageInFreeList.

AMD64 initialization previously only raised the IRQL.
It now acquires the lock where needed, as i386 does.
This commit is contained in:
Thomas Faber 2020-02-12 21:09:49 +01:00
parent 67b3b73d82
commit 6831468ccf
No known key found for this signature in database
GPG key ID: 076E7C3D44720826
2 changed files with 8 additions and 13 deletions

View file

@ -611,7 +611,7 @@ MiInsertPageInFreeList(IN PFN_NUMBER PageFrameIndex)
PMMCOLOR_TABLES ColorTable;
/* Make sure the page index is valid */
ASSERT(KeGetCurrentIrql() >= DISPATCH_LEVEL);
MI_ASSERT_PFN_LOCK_HELD();
ASSERT((PageFrameIndex != 0) &&
(PageFrameIndex <= MmHighestPhysicalPage) &&
(PageFrameIndex >= MmLowestPhysicalPage));