diff options
Diffstat (limited to 'arch/arm')
-rw-r--r-- | arch/arm/atomic.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/arch/arm/atomic.h b/arch/arm/atomic.h index 738f528c..8665c874 100644 --- a/arch/arm/atomic.h +++ b/arch/arm/atomic.h @@ -101,7 +101,9 @@ static inline void a_store(volatile int *p, int x) while (__k_cas(*p, x, p)); } -static inline void a_spin() +#define a_spin a_barrier + +static inline void a_barrier() { __k_cas(0, 0, &(int){0}); } |