summaryrefslogtreecommitdiff
path: root/arch/aarch64
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2016-02-23 13:04:56 -0500
committerRich Felker <dalias@aerifal.cx>2016-02-23 13:04:56 -0500
commitfd224a800b68843c4d8d1002b07dd91041a7fa32 (patch)
tree7381c3e1e06781810358c0774fb2c4952e5b4997 /arch/aarch64
parent225f6a6b5b7173b6655e4f5d49b5b9fea70bf3bb (diff)
downloadmusl-fd224a800b68843c4d8d1002b07dd91041a7fa32.tar.gz
musl-fd224a800b68843c4d8d1002b07dd91041a7fa32.tar.bz2
musl-fd224a800b68843c4d8d1002b07dd91041a7fa32.tar.xz
musl-fd224a800b68843c4d8d1002b07dd91041a7fa32.zip
make aarch64 atomic_arch.h report that it defines pointer-sized ll/sc
at present this is done only for consistency, since this file defines its own a_cas_p rather than using the new generic one from atomic.h added in commit 225f6a6b5b7173b6655e4f5d49b5b9fea70bf3bb. these definitions may however be useful if we ever need to add other pointer-sized atomic operations.
Diffstat (limited to 'arch/aarch64')
-rw-r--r--arch/aarch64/atomic_arch.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/aarch64/atomic_arch.h b/arch/aarch64/atomic_arch.h
index af93d879..8ab68c1c 100644
--- a/arch/aarch64/atomic_arch.h
+++ b/arch/aarch64/atomic_arch.h
@@ -34,6 +34,7 @@ static inline int a_cas(volatile int *p, int t, int s)
return old;
}
+#define a_ll_p a_ll_p
static inline void *a_ll_p(volatile void *p)
{
void *v;
@@ -41,6 +42,7 @@ static inline void *a_ll_p(volatile void *p)
return v;
}
+#define a_sc_p a_sc_p
static inline int a_sc_p(volatile int *p, void *v)
{
int r;