diff options
Diffstat (limited to 'arch/arm/atomic.h')
-rw-r--r-- | arch/arm/atomic.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/arm/atomic.h b/arch/arm/atomic.h index f434a0c6..94efe5a0 100644 --- a/arch/arm/atomic.h +++ b/arch/arm/atomic.h @@ -97,6 +97,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 }; |