From f006d3a007b7caffd4c810fa71623b39334a1580 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Tue, 11 Mar 2003 19:02:26 +0000 Subject: 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 * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: Don't clobber R7. --- nptl/sysdeps/ia64/bits/atomic.h | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'nptl/sysdeps/ia64') 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 (); \ -- cgit 1.4.1