(atomic_add): Don't allow address register for operand 0.

This commit is contained in:
Andreas Schwab 2001-08-15 13:09:16 +00:00
parent 3b402ca813
commit 4afac624ab

View File

@ -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