(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 8444680170
commit ee30b66dd6

View File

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