From: Rich Felker Date: Mon, 7 Apr 2014 08:28:12 +0000 (-0400) Subject: fix arm atomic asm register constraint X-Git-Tag: v1.1.0~14 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=efe07b0f8914eccf5eabce0dbd6ea5da7d7db38c;p=oweals%2Fmusl.git fix arm atomic asm register constraint the "m" constraint could give a memory reference with an offset that's not compatible with ldrex/strex, so the arm-specific "Q" constraint is needed instead. --- diff --git a/arch/arm/atomic.h b/arch/arm/atomic.h index fe88225b..50ad9478 100644 --- a/arch/arm/atomic.h +++ b/arch/arm/atomic.h @@ -37,7 +37,7 @@ static inline int __k_cas(int t, int s, volatile int *p) " beq 1b\n" " mcr p15,0,r0,c7,c10,5\n" : "=&r"(ret) - : "r"(t), "r"(s), "m"(*p) + : "r"(t), "r"(s), "Q"(*p) : "memory", "cc" ); return ret; }