mirror of
https://github.com/reactos/reactos.git
synced 2024-09-30 22:47:28 +00:00
[HAL]
Use KeMemoryBarrierWithoutFence instead of _ReadWriteBarrier svn path=/trunk/; revision=52128
This commit is contained in:
parent
f26fd84197
commit
639f5ac23b
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue