X-Git-Url: https://git.saurik.com/apple/xnu.git/blobdiff_plain/0a7de7458d150b5d4dffc935ba399be265ef0a1a..cb3231590a3c94ab4375e2228bd5e86b0cf1ad7e:/bsd/sys/bitstring.h diff --git a/bsd/sys/bitstring.h b/bsd/sys/bitstring.h index e69067255..536fab617 100644 --- a/bsd/sys/bitstring.h +++ b/bsd/sys/bitstring.h @@ -94,7 +94,7 @@ typedef uint8_t bitstr_t; /* set bit N of bitstring name (atomic) */ #define bitstr_set_atomic(name, bit) \ - atomic_bitset_8(&((name)[_bitstr_byte(bit)]), _bitstr_mask(bit)) + (void)os_atomic_or(&((name)[_bitstr_byte(bit)]), _bitstr_mask(bit), relaxed) /* clear bit N of bitstring name */ #define bitstr_clear(name, bit) \ @@ -102,7 +102,7 @@ typedef uint8_t bitstr_t; /* clear bit N of bitstring name (atomic) */ #define bitstr_clear_atomic(name, bit) \ - atomic_bitclear_8(&((name)[_bitstr_byte(bit)]), _bitstr_mask(bit)) + (void)os_atomic_andnot(&((name)[_bitstr_byte(bit)]), _bitstr_mask(bit), relaxed) /* clear bits start ... stop in bitstring */ #define bitstr_nclear(name, start, stop) do { \