Author: sir_richard
Date: Tue Nov 2 14:42:08 2010
New Revision: 49437
URL:
http://svn.reactos.org/svn/reactos?rev=49437&view=rev
Log:
[NTOS]: ASSERT nobody tries to put ARM3 pages into the MC_USER LRU.
Modified:
trunk/reactos/ntoskrnl/mm/freelist.c
Modified: trunk/reactos/ntoskrnl/mm/freelist.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/mm/freelist.c?rev…
==============================================================================
--- trunk/reactos/ntoskrnl/mm/freelist.c [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/mm/freelist.c [iso-8859-1] Tue Nov 2 14:42:08 2010
@@ -79,6 +79,8 @@
if (Position == 0xFFFFFFFF) return 0;
/* Return it */
+ ASSERT(Position != 0);
+ ASSERT_IS_ROS_PFN(MiGetPfnEntry(Position));
return Position;
}
@@ -89,6 +91,8 @@
KIRQL OldIrql;
/* Set the page as a user page */
+ ASSERT(Pfn != 0);
+ ASSERT_IS_ROS_PFN(MiGetPfnEntry(Pfn));
OldIrql = KeAcquireQueuedSpinLock(LockQueuePfnLock);
RtlSetBit(&MiUserPfnBitMap, Pfn);
KeReleaseQueuedSpinLock(LockQueuePfnLock, OldIrql);
@@ -108,6 +112,8 @@
if (Position == 0xFFFFFFFF) return 0;
/* Return it */
+ ASSERT(Position != 0);
+ ASSERT_IS_ROS_PFN(MiGetPfnEntry(Position));
return Position;
}
@@ -116,6 +122,8 @@
MmRemoveLRUUserPage(PFN_NUMBER Page)
{
/* Unset the page as a user page */
+ ASSERT(Page != 0);
+ ASSERT_IS_ROS_PFN(MiGetPfnEntry(Page));
RtlClearBit(&MiUserPfnBitMap, Page);
}