aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/m68k/m68020/atomicity.h
diff options
context:
space:
mode:
authorAndreas Schwab <schwab@suse.de>2001-08-15 13:09:16 +0000
committerAndreas Schwab <schwab@suse.de>2001-08-15 13:09:16 +0000
commitee30b66dd6c8120e1042d13b7dcb87f6e4e43af7 (patch)
tree0f7e50c58a34505c8366c840e4a3dee2c9c8c160 /sysdeps/m68k/m68020/atomicity.h
parent844468017075bab337bf6db217f63d1fb910cea6 (diff)
downloadglibc-ee30b66dd6c8120e1042d13b7dcb87f6e4e43af7.tar
glibc-ee30b66dd6c8120e1042d13b7dcb87f6e4e43af7.tar.gz
glibc-ee30b66dd6c8120e1042d13b7dcb87f6e4e43af7.tar.bz2
glibc-ee30b66dd6c8120e1042d13b7dcb87f6e4e43af7.zip
(atomic_add): Don't allow address register for operand 0.
Diffstat (limited to 'sysdeps/m68k/m68020/atomicity.h')
-rw-r--r--sysdeps/m68k/m68020/atomicity.h2
1 files changed, 1 insertions, 1 deletions
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