From ee30b66dd6c8120e1042d13b7dcb87f6e4e43af7 Mon Sep 17 00:00:00 2001 From: Andreas Schwab Date: Wed, 15 Aug 2001 13:09:16 +0000 Subject: (atomic_add): Don't allow address register for operand 0. --- sysdeps/m68k/m68020/atomicity.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sysdeps/m68k/m68020/atomicity.h') diff --git a/sysdeps/m68k/m68020/atomicity.h b/sysdeps/m68k/m68020/atomicity.h index 4639b015c2..4649480867 100644 --- a/sysdeps/m68k/m68020/atomicity.h +++ b/sysdeps/m68k/m68020/atomicity.h @@ -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 -- cgit 1.4.1