mirror of
https://github.com/reactos/reactos.git
synced 2025-07-31 19:31:45 +00:00
[NTOS:MM] Implement and use MiAcquirePfnLockAtDpcLevel/MiReleasePfnLockFromDpcLevel.
This commit is contained in:
parent
da5949280c
commit
81532227b6
2 changed files with 24 additions and 4 deletions
|
@ -883,6 +883,28 @@ MiReleasePfnLock(
|
|||
KeReleaseQueuedSpinLock(LockQueuePfnLock, OldIrql);
|
||||
}
|
||||
|
||||
FORCEINLINE
|
||||
VOID
|
||||
MiAcquirePfnLockAtDpcLevel(VOID)
|
||||
{
|
||||
PKSPIN_LOCK_QUEUE LockQueue;
|
||||
|
||||
ASSERT(KeGetCurrentIrql() >= DISPATCH_LEVEL);
|
||||
LockQueue = &KeGetCurrentPrcb()->LockQueue[LockQueuePfnLock];
|
||||
KeAcquireQueuedSpinLockAtDpcLevel(LockQueue);
|
||||
}
|
||||
|
||||
FORCEINLINE
|
||||
VOID
|
||||
MiReleasePfnLockFromDpcLevel(VOID)
|
||||
{
|
||||
PKSPIN_LOCK_QUEUE LockQueue;
|
||||
|
||||
LockQueue = &KeGetCurrentPrcb()->LockQueue[LockQueuePfnLock];
|
||||
KeReleaseQueuedSpinLockFromDpcLevel(LockQueue);
|
||||
ASSERT(KeGetCurrentIrql() >= DISPATCH_LEVEL);
|
||||
}
|
||||
|
||||
#define MI_ASSERT_PFN_LOCK_HELD() ASSERT(KeGetCurrentIrql() == DISPATCH_LEVEL)
|
||||
|
||||
FORCEINLINE
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue