mirror of
https://github.com/reactos/reactos.git
synced 2024-12-27 09:34:43 +00:00
Spinlock can also be acquired using KeAcquireSpinLockRaiseToSynch(),
take this into account when checking the IRQL on release svn path=/trunk/; revision=8129
This commit is contained in:
parent
fe2c30c13d
commit
7ee686f0e0
1 changed files with 2 additions and 2 deletions
|
@ -1,4 +1,4 @@
|
|||
/* $Id: spinlock.c,v 1.7 2004/01/18 22:35:05 gdalsnes Exp $
|
||||
/* $Id: spinlock.c,v 1.8 2004/02/10 15:16:12 gvg Exp $
|
||||
*
|
||||
* COPYRIGHT: See COPYING in the top level directory
|
||||
* PROJECT: ReactOS kernel
|
||||
|
@ -93,7 +93,7 @@ KfReleaseSpinLock (
|
|||
* NewIrql = Irql level before acquiring the spinlock
|
||||
*/
|
||||
{
|
||||
assert(KeGetCurrentIrql() == DISPATCH_LEVEL);
|
||||
assert(KeGetCurrentIrql() == DISPATCH_LEVEL || KeGetCurrentIrql() == SYNCH_LEVEL);
|
||||
KiReleaseSpinLock(SpinLock);
|
||||
KfLowerIrql(NewIrql);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue