avr32_atomic_fix.patch 379 B

12345678910
  1. --- a/libc/sysdeps/linux/avr32/bits/atomic.h
  2. +++ b/libc/sysdeps/linux/avr32/bits/atomic.h
  3. @@ -28,6 +28,7 @@ typedef uintmax_t uatomic_max_t;
  4. #define __arch_compare_and_exchange_val_32_acq(mem, newval, oldval) \
  5. ({ \
  6. + __uint32_t __result; \
  7. __typeof__(*(mem)) __prev; \
  8. __asm__ __volatile__( \
  9. "/* __arch_compare_and_exchange_val_32_acq */\n" \