mirror of
git://sourceware.org/git/glibc.git
synced 2024-12-27 04:41:02 +08:00
(atomic_add): Don't allow address register for operand 0.
This commit is contained in:
parent
3b402ca813
commit
4afac624ab
@ -45,7 +45,7 @@ atomic_add (volatile uint32_t *mem, int val)
|
||||
{
|
||||
/* XXX Use cas here as well? */
|
||||
__asm__ __volatile__ ("add%.l %0,%1"
|
||||
: : "ir" (val), "m" (*mem) : "memory");
|
||||
: : "id" (val), "m" (*mem) : "memory");
|
||||
}
|
||||
|
||||
static inline int
|
||||
|
Loading…
Reference in New Issue
Block a user