summaryrefslogtreecommitdiff
path: root/sysdeps/i386/i486/atomicity.h
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/i386/i486/atomicity.h')
-rw-r--r--sysdeps/i386/i486/atomicity.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sysdeps/i386/i486/atomicity.h b/sysdeps/i386/i486/atomicity.h
index 7157bc33d8..da4137abe1 100644
--- a/sysdeps/i386/i486/atomicity.h
+++ b/sysdeps/i386/i486/atomicity.h
@@ -28,7 +28,7 @@ __attribute__ ((unused))
exchange_and_add (volatile uint32_t *mem, int val)
{
register int result;
- __asm__ __volatile__ ("lock; xaddl %0,%1"
+ __asm__ __volatile__ ("lock; xaddl %0,%2"
: "=r" (result) : "0" (val), "m" (*mem) : "memory");
return result;
}