mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-03 04:13:31 +00:00
Raise IRQL to SYNCH_LEVEL in KeAcquireSpinLockRaiseToSynch for UP machines also
svn path=/trunk/; revision=6553
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
/* $Id: spinlock.c,v 1.5 2003/11/05 22:37:42 gvg Exp $
|
||||
/* $Id: spinlock.c,v 1.6 2003/11/06 21:13:21 gvg Exp $
|
||||
*
|
||||
* COPYRIGHT: See COPYING in the top level directory
|
||||
* PROJECT: ReactOS kernel
|
||||
@@ -45,19 +45,9 @@ KeAcquireSpinLockRaiseToSynch (
|
||||
)
|
||||
{
|
||||
KIRQL OldIrql;
|
||||
KIRQL NewIrql;
|
||||
|
||||
#ifdef MP
|
||||
NewIrql = IPI_LEVEL - 1;
|
||||
#else
|
||||
NewIrql = DISPATCH_LEVEL;
|
||||
#endif
|
||||
KeRaiseIrql(SYNCH_LEVEL, &OldIrql);
|
||||
|
||||
OldIrql = KeGetCurrentIrql();
|
||||
if (OldIrql < NewIrql)
|
||||
{
|
||||
KeRaiseIrql(NewIrql, &OldIrql);
|
||||
}
|
||||
KeAcquireSpinLockAtDpcLevel(SpinLock);
|
||||
|
||||
return OldIrql;
|
||||
|
||||
Reference in New Issue
Block a user