mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-05 21:00:05 +00:00
(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? */
|
||||
__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