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:
parent
2f397a93c0
commit
4d8f018e30
@ -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.
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user