mirror of
https://github.com/reactos/reactos.git
synced 2025-04-22 05:00:27 +00:00
[NTOS]: ASSERT nobody tries to put ARM3 pages into the MC_USER LRU.
svn path=/trunk/; revision=49437
This commit is contained in:
parent
72e1ab5fb8
commit
55256a107f
1 changed files with 8 additions and 0 deletions
|
@ -79,6 +79,8 @@ MmGetLRUFirstUserPage(VOID)
|
|||
if (Position == 0xFFFFFFFF) return 0;
|
||||
|
||||
/* Return it */
|
||||
ASSERT(Position != 0);
|
||||
ASSERT_IS_ROS_PFN(MiGetPfnEntry(Position));
|
||||
return Position;
|
||||
}
|
||||
|
||||
|
@ -89,6 +91,8 @@ MmInsertLRULastUserPage(PFN_NUMBER Pfn)
|
|||
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 @@ MmGetLRUNextUserPage(PFN_NUMBER PreviousPfn)
|
|||
if (Position == 0xFFFFFFFF) return 0;
|
||||
|
||||
/* Return it */
|
||||
ASSERT(Position != 0);
|
||||
ASSERT_IS_ROS_PFN(MiGetPfnEntry(Position));
|
||||
return Position;
|
||||
}
|
||||
|
||||
|
@ -116,6 +122,8 @@ NTAPI
|
|||
MmRemoveLRUUserPage(PFN_NUMBER Page)
|
||||
{
|
||||
/* Unset the page as a user page */
|
||||
ASSERT(Page != 0);
|
||||
ASSERT_IS_ROS_PFN(MiGetPfnEntry(Page));
|
||||
RtlClearBit(&MiUserPfnBitMap, Page);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue