Remove arm-specific implementations of atomic_load/store_xxx() now that
they are provided by sys/atomic_common.h.
This commit is contained in:
parent
33d72c30f1
commit
5d83601f1f
@ -55,32 +55,6 @@
|
||||
#include <machine/atomic-v4.h>
|
||||
#endif /* Arch >= v6 */
|
||||
|
||||
static __inline int
|
||||
atomic_load_32(volatile uint32_t *v)
|
||||
{
|
||||
|
||||
return (*v);
|
||||
}
|
||||
|
||||
static __inline void
|
||||
atomic_store_32(volatile uint32_t *dst, uint32_t src)
|
||||
{
|
||||
*dst = src;
|
||||
}
|
||||
|
||||
static __inline int
|
||||
atomic_load_long(volatile u_long *v)
|
||||
{
|
||||
|
||||
return (*v);
|
||||
}
|
||||
|
||||
static __inline void
|
||||
atomic_store_long(volatile u_long *dst, u_long src)
|
||||
{
|
||||
*dst = src;
|
||||
}
|
||||
|
||||
#define atomic_clear_ptr atomic_clear_32
|
||||
#define atomic_clear_acq_ptr atomic_clear_acq_32
|
||||
#define atomic_clear_rel_ptr atomic_clear_rel_32
|
||||
@ -94,7 +68,6 @@ atomic_store_long(volatile u_long *dst, u_long src)
|
||||
#define atomic_cmpset_acq_ptr atomic_cmpset_acq_32
|
||||
#define atomic_cmpset_rel_ptr atomic_cmpset_rel_32
|
||||
#define atomic_load_acq_ptr atomic_load_acq_32
|
||||
#define atomic_store_ptr atomic_store_32
|
||||
#define atomic_store_rel_ptr atomic_store_rel_32
|
||||
#define atomic_swap_ptr atomic_swap_32
|
||||
#define atomic_readandclear_ptr atomic_readandclear_32
|
||||
|
Loading…
x
Reference in New Issue
Block a user