diff options
author | Rich Felker <dalias@aerifal.cx> | 2014-10-10 18:17:09 -0400 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2014-10-10 18:17:09 -0400 |
commit | 867b1822f30a76cb9c8342da29eb28ed75908fa9 (patch) | |
tree | 9c0f489e301ae87ce0296adab65c488d926ac4b9 /arch/microblaze | |
parent | 08b996d180323775d5457944eefbb8a51ea72539 (diff) | |
download | musl-867b1822f30a76cb9c8342da29eb28ed75908fa9.tar.gz musl-867b1822f30a76cb9c8342da29eb28ed75908fa9.tar.bz2 musl-867b1822f30a76cb9c8342da29eb28ed75908fa9.tar.xz musl-867b1822f30a76cb9c8342da29eb28ed75908fa9.zip |
add explicit barrier operation to internal atomic.h API
Diffstat (limited to 'arch/microblaze')
-rw-r--r-- | arch/microblaze/atomic.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/arch/microblaze/atomic.h b/arch/microblaze/atomic.h index abb79b53..93404b94 100644 --- a/arch/microblaze/atomic.h +++ b/arch/microblaze/atomic.h @@ -95,7 +95,9 @@ static inline void a_store(volatile int *p, int x) : "=m"(*p) : "r"(x) : "memory" ); } -static inline void a_spin() +#define a_spin a_barrier + +static inline void a_barrier() { a_cas(&(int){0}, 0, 0); } |