mirror of
https://github.com/gcc-mirror/gcc.git
synced 2026-05-06 23:14:49 +02:00
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:
committed by
Andrew Haley
parent
2f397a93c0
commit
4d8f018e30
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user