aboutsummaryrefslogtreecommitdiff
path: root/arch/arm
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2014-10-10 18:17:09 -0400
committerRich Felker <dalias@aerifal.cx>2014-10-10 18:17:09 -0400
commit867b1822f30a76cb9c8342da29eb28ed75908fa9 (patch)
tree9c0f489e301ae87ce0296adab65c488d926ac4b9 /arch/arm
parent08b996d180323775d5457944eefbb8a51ea72539 (diff)
downloadmusl-867b1822f30a76cb9c8342da29eb28ed75908fa9.zip
musl-867b1822f30a76cb9c8342da29eb28ed75908fa9.tar.gz
musl-867b1822f30a76cb9c8342da29eb28ed75908fa9.tar.bz2
add explicit barrier operation to internal atomic.h API
Diffstat (limited to 'arch/arm')
-rw-r--r--arch/arm/atomic.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/arch/arm/atomic.h b/arch/arm/atomic.h
index 738f528..8665c87 100644
--- a/arch/arm/atomic.h
+++ b/arch/arm/atomic.h
@@ -101,7 +101,9 @@ static inline void a_store(volatile int *p, int x)
while (__k_cas(*p, x, p));
}
-static inline void a_spin()
+#define a_spin a_barrier
+
+static inline void a_barrier()
{
__k_cas(0, 0, &(int){0});
}