locks.h (write_barrier): New.

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

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

From-SVN: r121053
This commit is contained in:
Andrew Haley 2007-01-22 12:27:48 +00:00 committed by Andrew Haley
parent 2f397a93c0
commit 4d8f018e30
2 changed files with 12 additions and 0 deletions

View 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.

View 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