mirror of
git://git.musl-libc.org/musl
synced 2024-12-16 19:55:38 +00:00
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.
This commit is contained in:
parent
1974bffa2d
commit
efe07b0f89
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user