summaryrefslogtreecommitdiff
path: root/ports/sysdeps/arm
diff options
context:
space:
mode:
authorJoseph Myers <joseph@codesourcery.com>2012-09-21 23:42:16 +0000
committerJoseph Myers <joseph@codesourcery.com>2012-09-21 23:42:16 +0000
commiteaf6f205fff7ca8a628869e3bc56800020a70f24 (patch)
tree9276e32b3d760bde20beee29743af3d50b63fa66 /ports/sysdeps/arm
parent431531094f2e0401c27a23a104e335fcc8552580 (diff)
downloadglibc-eaf6f205fff7ca8a628869e3bc56800020a70f24.tar.gz
Correct order of arguments of __arm_assisted_compare_and_exchange_val_32_acq.
Diffstat (limited to 'ports/sysdeps/arm')
-rw-r--r--ports/sysdeps/arm/bits/atomic.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/ports/sysdeps/arm/bits/atomic.h b/ports/sysdeps/arm/bits/atomic.h
index 99842105cc..39e276f098 100644
--- a/ports/sysdeps/arm/bits/atomic.h
+++ b/ports/sysdeps/arm/bits/atomic.h
@@ -58,7 +58,7 @@ void __arm_link_error (void);
__sync_val_compare_and_swap ((mem), (oldval), (newval))
#else
# define __arch_compare_and_exchange_val_32_acq(mem, newval, oldval) \
- __arm_assisted_compare_and_exchange_val_32_acq ((mem), (oldval), (newval))
+ __arm_assisted_compare_and_exchange_val_32_acq ((mem), (newval), (oldval))
#endif
/* We don't support atomic operations on any non-word types.