diff options
-rw-r--r-- | arch/or1k/atomic.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/or1k/atomic.h b/arch/or1k/atomic.h index 0fb61de1..10f75cbe 100644 --- a/arch/or1k/atomic.h +++ b/arch/or1k/atomic.h @@ -74,7 +74,7 @@ static inline void a_dec(volatile int *x) static inline void a_store(volatile int *p, int x) { - *p=x; + a_swap(p, x); } static inline void a_spin() |