From 2204e78f5e9ff885fcc35462fa41cb1e81c2e7f6 Mon Sep 17 00:00:00 2001 From: Olivier Houchard Date: Thu, 7 Apr 2005 22:04:49 +0000 Subject: [PATCH] No need to provide atomic_cmpset_32() anymore. --- libexec/rtld-elf/arm/rtld_machdep.h | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/libexec/rtld-elf/arm/rtld_machdep.h b/libexec/rtld-elf/arm/rtld_machdep.h index 8244e495ed5..dd046a9d5ae 100644 --- a/libexec/rtld-elf/arm/rtld_machdep.h +++ b/libexec/rtld-elf/arm/rtld_machdep.h @@ -71,16 +71,4 @@ 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) -{ - - if (*p == cmpval) { - *p = newval; - return (1); - } - return (0); -} -#endif #endif