diff options
author | Ulf Samuelsson <ulf.samuelsson@atmel.com> | 2007-10-12 15:12:55 +0000 |
---|---|---|
committer | Ulf Samuelsson <ulf.samuelsson@atmel.com> | 2007-10-12 15:12:55 +0000 |
commit | 191d0518b9967a64fa8f947a5b042b4c162752ca (patch) | |
tree | 866c8ed5ec8cddc70e905faca952728f70c95b5c /toolchain/uClibc/uClibc-0.9.29-fix-inverted-login-in-compare_and_swap-in-linuxthreads.patch | |
parent | 022b1041523e218a44b75bec783dfd2f0d5371df (diff) |
Add AVR32 support for uclibc-0-9-29
Diffstat (limited to 'toolchain/uClibc/uClibc-0.9.29-fix-inverted-login-in-compare_and_swap-in-linuxthreads.patch')
-rw-r--r-- | toolchain/uClibc/uClibc-0.9.29-fix-inverted-login-in-compare_and_swap-in-linuxthreads.patch | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/toolchain/uClibc/uClibc-0.9.29-fix-inverted-login-in-compare_and_swap-in-linuxthreads.patch b/toolchain/uClibc/uClibc-0.9.29-fix-inverted-login-in-compare_and_swap-in-linuxthreads.patch new file mode 100644 index 000000000..0cb0d1780 --- /dev/null +++ b/toolchain/uClibc/uClibc-0.9.29-fix-inverted-login-in-compare_and_swap-in-linuxthreads.patch @@ -0,0 +1,28 @@ +From: Haavard Skinnemoen <hskinnemoen@atmel.com> +Date: Wed, 19 Sep 2007 10:03:36 +0200 +Subject: [Avr-gnu-toolchain] [uClibc PATCH] Fix inverted logic in + __compare_and_swap in linuxthreads.old + +If the old value equals the value in memory, the result should be +TRUE, not FALSE. + +Signed-off-by: Haavard Skinnemoen <hskinnemoen@atmel.com> +--- + .../linuxthreads.old/sysdeps/avr32/pt-machine.h | 2 +- + 1 files changed, 1 insertions(+), 1 deletions(-) + +diff --git a/libpthread/linuxthreads.old/sysdeps/avr32/pt-machine.h b/libpthread/linuxthreads.old/sysdeps/avr32/pt-machine.h +index 2e8a33b..eccf329 100644 +--- a/libpthread/linuxthreads.old/sysdeps/avr32/pt-machine.h ++++ b/libpthread/linuxthreads.old/sysdeps/avr32/pt-machine.h +@@ -67,7 +67,7 @@ __compare_and_swap(long int *p, long int oldval, long int newval) + : "m"(*p), [new] "r"(newval), [old] "r"(oldval) + : "cc", "memory"); + +- return result; ++ return result == 0; + } + + #endif /* pt-machine.h */ +-- +1.5.3.1 |