mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-27 11:55:06 +00:00
Cast the arguments to atomic_*_ptr() when mapping it to atomic_*_32()
This is a minimal fix. Approved by: re (kensmith)
This commit is contained in:
parent
1db0049fa1
commit
c108b80c8c
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=171334
@ -414,7 +414,9 @@ atomic_cmpset_64(volatile u_int64_t* p, u_int64_t cmpval, u_int64_t newval)
|
||||
|
||||
#define atomic_cmpset_int atomic_cmpset_32
|
||||
#define atomic_cmpset_long atomic_cmpset_32
|
||||
#define atomic_cmpset_ptr atomic_cmpset_32
|
||||
|
||||
#define atomic_cmpset_ptr(dst, old, new) \
|
||||
atomic_cmpset_32((volatile u_int *)(dst), (u_int)(old), (u_int)(new))
|
||||
|
||||
#if 0
|
||||
#define atomic_cmpset_long_long atomic_cmpset_64
|
||||
@ -441,8 +443,11 @@ atomic_cmpset_rel_32(volatile uint32_t *p, uint32_t cmpval, uint32_t newval)
|
||||
#define atomic_cmpset_rel_int atomic_cmpset_rel_32
|
||||
#define atomic_cmpset_acq_long atomic_cmpset_acq_32
|
||||
#define atomic_cmpset_rel_long atomic_cmpset_rel_32
|
||||
#define atomic_cmpset_acq_ptr atomic_cmpset_acq_32
|
||||
#define atomic_cmpset_rel_ptr atomic_cmpset_rel_32
|
||||
|
||||
#define atomic_cmpset_acq_ptr(dst, old, new) \
|
||||
atomic_cmpset_acq_32((volatile u_int *)(dst), (u_int)(old), (u_int)(new))
|
||||
#define atomic_cmpset_rel_ptr(dst, old, new) \
|
||||
atomic_cmpset_rel_32((volatile u_int *)(dst), (u_int)(old), (u_int)(new))
|
||||
|
||||
static __inline uint32_t
|
||||
atomic_fetchadd_32(volatile uint32_t *p, uint32_t v)
|
||||
|
Loading…
Reference in New Issue
Block a user