]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
locks.h (write_barrier): New.
authorAndrew Haley <aph@redhat.com>
Mon, 22 Jan 2007 12:27:48 +0000 (12:27 +0000)
committerAndrew Haley <aph@gcc.gnu.org>
Mon, 22 Jan 2007 12:27:48 +0000 (12:27 +0000)
2007-01-22  Andrew Haley  <aph@redhat.com>

        * sysdep/alpha/locks.h (write_barrier): New.

From-SVN: r121053

libjava/ChangeLog
libjava/sysdep/alpha/locks.h

index 2c0a0f7c11e36cb3d5ab36c8c294086246b17cd5..16c457b3f99f299ac248876e12112c26f168c59f 100644 (file)
@@ -1,3 +1,7 @@
+2007-01-22  Andrew Haley  <aph@redhat.com>
+
+       * sysdep/alpha/locks.h (write_barrier): New.
+
 2007-01-21  Matthias Klose  <doko@debian.org>
 
        * Makefile.am (install-exec-hook): Use transformed name.
index 1c20249cce393aea1cadc02dfee08f35739e4c77..c5f7f4993e6bdbe3ed1a25ba2465a8592a9cd7c2 100644 (file)
@@ -50,4 +50,12 @@ compare_and_swap_release(volatile obj_addr_t *addr,
   return compare_and_swap(addr, old, new_val);
 }
 
+// Ensure that prior stores to memory are completed with respect to other
+// processors.
+inline static void
+write_barrier()
+{
+  __asm__ __volatile__("wmb" : : : "memory");
+}
+
 #endif