about summary refs log tree commit diff
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2001-05-17 07:52:02 +0000
committerUlrich Drepper <drepper@redhat.com>2001-05-17 07:52:02 +0000
commitfb221698c3ecefc8ad92b07a548068efce21da83 (patch)
tree43d0ddd451970e2a1728e7850b3e4e81062a3e22
parent304d7abfadb59d53c078c43bf825d13d279992c0 (diff)
downloadglibc-fb221698c3ecefc8ad92b07a548068efce21da83.tar.gz
glibc-fb221698c3ecefc8ad92b07a548068efce21da83.tar.xz
glibc-fb221698c3ecefc8ad92b07a548068efce21da83.zip
Update.
2001-05-17  Ulrich Drepper  <drepper@redhat.com>

	* sysdeps/i386/i486/atomicity.h (exchange_and_add): Correct second
	parameter of xaddl.  Patch by H . J . Lu <hjl@lucon.org>.
-rw-r--r--ChangeLog5
-rw-r--r--sysdeps/i386/i486/atomicity.h2
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 6638b34edd..8615574db7 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2001-05-17  Ulrich Drepper  <drepper@redhat.com>
+
+	* sysdeps/i386/i486/atomicity.h (exchange_and_add): Correct second
+	parameter of xaddl.  Patch by H . J . Lu <hjl@lucon.org>.
+
 2001-05-14  Bruno Haible  <haible@clisp.cons.org>
 
 	* iconvdata/iso-2022-cn-ext.c (BODY for FROM_LOOP): If SO is seen
diff --git a/sysdeps/i386/i486/atomicity.h b/sysdeps/i386/i486/atomicity.h
index da7e5f2036..81c9be8471 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, uint32_t val)
 {
   register uint32_t result;
-  __asm__ __volatile__ ("lock; xaddl %0,%2"
+  __asm__ __volatile__ ("lock; xaddl %0,%1"
 			: "=r" (result), "=m" (*mem) : "0" (val), "1" (*mem));
   return result;
 }