Commit 4d8f018e by Andrew Haley Committed by Andrew Haley

locks.h (write_barrier): New.

2007-01-22  Andrew Haley  <aph@redhat.com>

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

From-SVN: r121053
parent 2f397a93
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.
......
......@@ -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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment