aboutsummaryrefslogtreecommitdiff
path: root/libexec/rtld-elf/arm
diff options
context:
space:
mode:
authorOlivier Houchard <cognet@FreeBSD.org>2005-02-26 22:49:19 +0000
committerOlivier Houchard <cognet@FreeBSD.org>2005-02-26 22:49:19 +0000
commitc6ac5bfcae7c781f920c900c9a3a27b5e3956a50 (patch)
tree8729d8e76a833d79b0d2d9d971b524e037ef6f5a /libexec/rtld-elf/arm
parent70610c87cb59719084dc88551ac8396cfa0332e6 (diff)
downloadsrc-c6ac5bfcae7c781f920c900c9a3a27b5e3956a50.tar.gz
src-c6ac5bfcae7c781f920c900c9a3a27b5e3956a50.zip
Only provide the dummy, non-atomic atomic_cmpset_32() if
ARM_HAS_ATOMIC_CMPSET_32 isn't defined.
Notes
Notes: svn path=/head/; revision=142593
Diffstat (limited to 'libexec/rtld-elf/arm')
-rw-r--r--libexec/rtld-elf/arm/rtld_machdep.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/libexec/rtld-elf/arm/rtld_machdep.h b/libexec/rtld-elf/arm/rtld_machdep.h
index cc1410cd4fab..8244e495ed5c 100644
--- a/libexec/rtld-elf/arm/rtld_machdep.h
+++ b/libexec/rtld-elf/arm/rtld_machdep.h
@@ -71,6 +71,7 @@ void _rtld_bind_start(void);
extern void *__tls_get_addr(tls_index *ti);
+#ifndef ARM_HAS_ATOMIC_CMPSET_32
static __inline u_int32_t
atomic_cmpset_32(volatile u_int32_t *p, u_int32_t cmpval, u_int32_t newval)
{
@@ -82,3 +83,4 @@ atomic_cmpset_32(volatile u_int32_t *p, u_int32_t cmpval, u_int32_t newval)
return (0);
}
#endif
+#endif