diff options
author | Rich Felker <dalias@aerifal.cx> | 2014-04-07 04:28:12 -0400 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2014-04-07 04:28:12 -0400 |
commit | efe07b0f8914eccf5eabce0dbd6ea5da7d7db38c (patch) | |
tree | 1fb4d4a456a3e980b20e757c3f083f33d1f0e2d1 /arch/arm/atomic.h | |
parent | 1974bffa2db151b4a05a2387ae765ab81ac83ba8 (diff) | |
download | musl-efe07b0f8914eccf5eabce0dbd6ea5da7d7db38c.tar.gz musl-efe07b0f8914eccf5eabce0dbd6ea5da7d7db38c.tar.xz musl-efe07b0f8914eccf5eabce0dbd6ea5da7d7db38c.zip |
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.
Diffstat (limited to 'arch/arm/atomic.h')
-rw-r--r-- | arch/arm/atomic.h | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |