diff options
author | Rich Felker <dalias@aerifal.cx> | 2013-08-11 03:43:25 -0400 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2013-08-11 03:43:25 -0400 |
commit | 7568ee4cbf317f8c21fb9b45e059db2a45c81488 (patch) | |
tree | 0ae133851605deddd67f9cac25f55e1ce9533061 /arch/mips/atomic.h | |
parent | 90d77722511ad5e9b748f69f42c5b2a8467fa049 (diff) | |
download | musl-7568ee4cbf317f8c21fb9b45e059db2a45c81488.tar.gz musl-7568ee4cbf317f8c21fb9b45e059db2a45c81488.tar.bz2 musl-7568ee4cbf317f8c21fb9b45e059db2a45c81488.tar.xz musl-7568ee4cbf317f8c21fb9b45e059db2a45c81488.zip |
add missing a_or_l to atomic.h for non-x86 archs
this is needed for recently committed sigaction code
Diffstat (limited to 'arch/mips/atomic.h')
-rw-r--r-- | arch/mips/atomic.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/mips/atomic.h b/arch/mips/atomic.h index f3478ef2..69dcdf48 100644 --- a/arch/mips/atomic.h +++ b/arch/mips/atomic.h @@ -182,6 +182,11 @@ static inline void a_or(volatile int *p, int v) : "=&r"(dummy) : "r"(p), "r"(v) : "memory" ); } +static inline void a_or_l(volatile void *p, long v) +{ + a_or(p, v); +} + static inline void a_and_64(volatile uint64_t *p, uint64_t v) { union { uint64_t v; uint32_t r[2]; } u = { v }; |