OSDN Git Service

2007-01-22 Andrew Haley <aph@redhat.com>
authoraph <aph@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 22 Jan 2007 12:27:48 +0000 (12:27 +0000)
committeraph <aph@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 22 Jan 2007 12:27:48 +0000 (12:27 +0000)
        * sysdep/alpha/locks.h (write_barrier): New.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@121053 138bc75d-0d04-0410-961f-82ee72b054a4

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

index 2c0a0f7..16c457b 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.
 2007-01-21  Matthias Klose  <doko@debian.org>
 
        * Makefile.am (install-exec-hook): Use transformed name.
index 1c20249..c5f7f49 100644 (file)
@@ -50,4 +50,12 @@ compare_and_swap_release(volatile obj_addr_t *addr,
   return compare_and_swap(addr, old, new_val);
 }
 
   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
 #endif