about summary refs log tree commit diff
path: root/linuxthreads
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1999-05-18 09:48:05 +0000
committerUlrich Drepper <drepper@redhat.com>1999-05-18 09:48:05 +0000
commit1acf7665c7b5f1d65b322de82065c4eaec623afe (patch)
tree09312155fcdcf84d7611ee61771306e42000f83d /linuxthreads
parent2a269cd083e6e40255952e4300178b819514cca7 (diff)
downloadglibc-1acf7665c7b5f1d65b322de82065c4eaec623afe.tar.gz
glibc-1acf7665c7b5f1d65b322de82065c4eaec623afe.tar.xz
glibc-1acf7665c7b5f1d65b322de82065c4eaec623afe.zip
Update.
1999-05-18  Ulrich Drepper  <drepper@cygnus.com>

	* sysdeps/wordsize-64/stdint.h (INTPTR_MAX): Add missing ).

1999-05-17  David S. Miller  <davem@redhat.com>

	* sysdeps/sparc/sparc32/atomicity.h: New file.
	* sysdeps/sparc/sparc32/sparcv9/atomicity.h: New file.
	* sysdeps/sparc/sparc64/atomicity.h: New file.
	* sysdeps/sparc/sparc32/sparcv9/Makefile: Add -Wa,-Av9a to
	sysdep-CFLAGS.
Diffstat (limited to 'linuxthreads')
-rw-r--r--linuxthreads/sysdeps/sparc/sparc64/pt-machine.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/linuxthreads/sysdeps/sparc/sparc64/pt-machine.h b/linuxthreads/sysdeps/sparc/sparc64/pt-machine.h
index 101b85516a..5560003fc8 100644
--- a/linuxthreads/sysdeps/sparc/sparc64/pt-machine.h
+++ b/linuxthreads/sysdeps/sparc/sparc64/pt-machine.h
@@ -63,11 +63,11 @@ __compare_and_swap (long int *p, long int oldval, long int newval)
 {
   long int readval;
 
-  __asm__ __volatile__ ("cas	[%4], %2, %0"
+  __asm__ __volatile__ ("casx	[%4], %2, %0"
 			: "=r"(readval), "=m"(*p)
 			: "r"(oldval), "m"(*p), "r"(p), "0"(newval));
 
-  return readval == newval;
+  return readval == oldval;
 }
 
 /* Access to data in the thread descriptor is easy.  */