Only provide the dummy, non-atomic atomic_cmpset_32() if
ARM_HAS_ATOMIC_CMPSET_32 isn't defined.
This commit is contained in:
parent
70610c87cb
commit
c6ac5bfcae
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=142593
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user