diff options
-rw-r--r-- | arch/powerpc/atomic.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/atomic.h b/arch/powerpc/atomic.h index d52ee0c6..05951a2d 100644 --- a/arch/powerpc/atomic.h +++ b/arch/powerpc/atomic.h @@ -31,7 +31,7 @@ static inline int a_cas(volatile int *p, int t, int s) " stwcx. %3, 0, %1\n" " bne- 1b\n" "1: \n" - : "=&r"(t) : "r"(p), "r"(t), "r"(s) : "cc", "memory" ); + : "=&r"(t), "+m"(*p) : "r"(t), "r"(s) : "cc", "memory" ); return t; } |