On 2020-06-13 7:08 p.m., Helge Deller wrote: > Regarding your changes to bitops.c, can't we instead > simply tag the parameter ptr with "volatile", e.g. > unsigned long __xchg64(unsigned long x, volatile unsigned long *ptr) > unsigned long __xchg32(int x, volatile int *ptr) > unsigned long __xchg8(char x, volatile char *ptr) In developing this change, I intentionally avoided changing any interfaces. This would certainly have the same affect and is similar to what is done in the __cmpxchg_u64 and __cmpxchg_u32 routines. Dave -- John David Anglin dave.anglin@xxxxxxxx