about summary refs log tree commit diff
path: root/nptl/sysdeps/ia64
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2003-03-11 19:02:26 +0000
committerUlrich Drepper <drepper@redhat.com>2003-03-11 19:02:26 +0000
commitf006d3a007b7caffd4c810fa71623b39334a1580 (patch)
tree77aa3aa11ab6c527e257648a6c7da97e233dd134 /nptl/sysdeps/ia64
parentea69482383319d05bed2d516a2cbb2a19549c1ce (diff)
downloadglibc-f006d3a007b7caffd4c810fa71623b39334a1580.tar.gz
glibc-f006d3a007b7caffd4c810fa71623b39334a1580.tar.xz
glibc-f006d3a007b7caffd4c810fa71623b39334a1580.zip
Update.
	* sysdeps/unix/sysv/linux/ia64/system.c: New file.
	* sysdeps/unix/sysv/linux/kernel-features.h
	(__ASSUME_CLONE_THREAD_FLAGS): Define for IA-64 and s390* with
	kernel >= 2.5.64.

2003-03-11  Jakub Jelinek  <jakub@redhat.com>

	* sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: Don't clobber R7.
Diffstat (limited to 'nptl/sysdeps/ia64')
-rw-r--r--nptl/sysdeps/ia64/bits/atomic.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/nptl/sysdeps/ia64/bits/atomic.h b/nptl/sysdeps/ia64/bits/atomic.h
index 4b1d24f8e7..cfccc6ad71 100644
--- a/nptl/sysdeps/ia64/bits/atomic.h
+++ b/nptl/sysdeps/ia64/bits/atomic.h
@@ -78,15 +78,17 @@ typedef uintmax_t uatomic_max_t;
       do								      \
 	__oldval = __val;						      \
       while ((__val							      \
-	      = __arch_compare_and_exchange_32_val_acq (__memp, __oldval,     \
-							__oldval + __value))  \
+	      = __arch_compare_and_exchange_32_val_acq (__memp,		      \
+							__oldval + __value,   \
+							__oldval))	      \
 	     != __oldval);						      \
     else if (sizeof (*mem) == 8)					      \
       do								      \
 	__oldval = __val;						      \
       while ((__val							      \
-	      = __arch_compare_and_exchange_64_val_acq (__memp, __oldval,     \
-							__oldval + __value))  \
+	      = __arch_compare_and_exchange_64_val_acq (__memp,		      \
+							__oldval + __value,   \
+							__oldval))	      \
 	     != __oldval);						      \
     else								      \
       abort ();								      \