diff options
Diffstat (limited to 'arch/powerpc')
-rw-r--r-- | arch/powerpc/atomic.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/powerpc/atomic.h b/arch/powerpc/atomic.h index 4a47064a..d52ee0c6 100644 --- a/arch/powerpc/atomic.h +++ b/arch/powerpc/atomic.h @@ -100,6 +100,11 @@ static inline void a_or(volatile int *p, int v) while (a_cas(p, old, old|v) != old); } +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 }; |