1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-07-29 11:41:21 +03:00
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.
This commit is contained in:
Ulrich Drepper
1999-05-18 09:48:05 +00:00
parent 2a269cd083
commit 1acf7665c7
7 changed files with 278 additions and 4 deletions

View File

@ -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. */