[ros-diffs] [tkreuzer] 52128: [HAL] Use KeMemoryBarrierWithoutFence instead of _ReadWriteBarrier

tkreuzer at svn.reactos.org tkreuzer at svn.reactos.org
Tue Jun 7 09:49:23 UTC 2011


Author: tkreuzer
Date: Tue Jun  7 09:49:23 2011
New Revision: 52128

URL: http://svn.reactos.org/svn/reactos?rev=52128&view=rev
Log:
[HAL]
Use KeMemoryBarrierWithoutFence instead of _ReadWriteBarrier

Modified:
    trunk/reactos/hal/halx86/generic/spinlock.c

Modified: trunk/reactos/hal/halx86/generic/spinlock.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/hal/halx86/generic/spinlock.c?rev=52128&r1=52127&r2=52128&view=diff
==============================================================================
--- trunk/reactos/hal/halx86/generic/spinlock.c [iso-8859-1] (original)
+++ trunk/reactos/hal/halx86/generic/spinlock.c [iso-8859-1] Tue Jun  7 09:49:23 2011
@@ -190,7 +190,7 @@
 
     /* 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 @@
 
     /* 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;




More information about the Ros-diffs mailing list