mirror of git://sourceware.org/git/glibc.git
(atomic_add): Don't allow address register for operand 0.
This commit is contained in:
parent
8444680170
commit
ee30b66dd6
|
@ -45,7 +45,7 @@ atomic_add (volatile uint32_t *mem, int val)
|
||||||
{
|
{
|
||||||
/* XXX Use cas here as well? */
|
/* XXX Use cas here as well? */
|
||||||
__asm__ __volatile__ ("add%.l %0,%1"
|
__asm__ __volatile__ ("add%.l %0,%1"
|
||||||
: : "ir" (val), "m" (*mem) : "memory");
|
: : "id" (val), "m" (*mem) : "memory");
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline int
|
static inline int
|
||||||
|
|
Loading…
Reference in New Issue