Skip to content

Commit

Permalink
(atomic_add): Don't allow address register for operand 0.
Browse files Browse the repository at this point in the history
  • Loading branch information
Andreas Schwab committed Aug 15, 2001
1 parent 8444680 commit ee30b66
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sysdeps/m68k/m68020/atomicity.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ee30b66

Please sign in to comment.