Use KeMemoryBarrierWithoutFence instead of _ReadWriteBarrier

svn path=/trunk/; revision=52128
This commit is contained in:
Timo Kreuzer 2011-06-07 09:49:23 +00:00
parent f26fd84197
commit 639f5ac23b

View file

@ -190,7 +190,7 @@ KeTryToAcquireQueuedSpinLockRaiseToSynch(IN KSPIN_LOCK_QUEUE_NUMBER LockNumber,
/* Add an explicit memory barrier to prevent the compiler from reordering
memory accesses across the borders of spinlocks */
_ReadWriteBarrier();
KeMemoryBarrierWithoutFence();
/* Always return true on UP Machines */
return TRUE;
@ -214,7 +214,7 @@ KeTryToAcquireQueuedSpinLock(IN KSPIN_LOCK_QUEUE_NUMBER LockNumber,
/* Add an explicit memory barrier to prevent the compiler from reordering
memory accesses across the borders of spinlocks */
_ReadWriteBarrier();
KeMemoryBarrierWithoutFence();
/* Always return true on UP Machines */
return TRUE;