mirror of
https://github.com/opnsense/src.git
synced 2026-06-03 22:02:58 -04:00
Quick fix for the kernel build breakage in netgraph and the
aliasing warning in libthr. A more elaborate fix is in the works that makes sure that all variants have proper inline functions with proper types.
This commit is contained in:
parent
f2ca4c3ad4
commit
ca6f63a1ed
1 changed files with 4 additions and 2 deletions
|
|
@ -226,8 +226,10 @@ atomic_readandclear_64(volatile u_int64_t *addr)
|
|||
|
||||
#define atomic_set_long atomic_set_32
|
||||
#define atomic_clear_long atomic_clear_32
|
||||
#define atomic_add_long(p, v) atomic_add_32((uint32_t *)p, (uint32_t)v)
|
||||
#define atomic_subtract_long(p, v) atomic_subtract_32((uint32_t *)p, (uint32_t)v)
|
||||
#define atomic_add_long(p, v) \
|
||||
atomic_add_32((volatile uint32_t *)(volatile void *)p, v)
|
||||
#define atomic_subtract_long(p, v) \
|
||||
atomic_subtract_32((volatile uint32_t *)(volatile void *)p, v)
|
||||
#define atomic_readandclear_long atomic_readandclear_32
|
||||
|
||||
#define atomic_set_ptr atomic_set_32
|
||||
|
|
|
|||
Loading…
Reference in a new issue