diff options
author | Khem Raj <raj.khem@gmail.com> | 2011-03-14 22:45:33 -0700 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2011-03-14 22:45:33 -0700 |
commit | e25a95a7a3c9f5bb3a38106422b12f83bf58d119 (patch) | |
tree | 01ee09276f1739e40420c2b09ff7bd45fc0d7eb2 /libc | |
parent | 1b3f056d4aa2726f872f2ee85f3f391a784e19e4 (diff) |
arm/bits/atomic.h: Include common/bit/atomic.h for thumb1
This restores the behavior for thumb1 builds and yet uses
the new atomic.h for arm and thumb2 modes.
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'libc')
-rw-r--r-- | libc/sysdeps/linux/arm/bits/atomic.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libc/sysdeps/linux/arm/bits/atomic.h b/libc/sysdeps/linux/arm/bits/atomic.h index 07101fbe8..0b90330dd 100644 --- a/libc/sysdeps/linux/arm/bits/atomic.h +++ b/libc/sysdeps/linux/arm/bits/atomic.h @@ -16,6 +16,9 @@ Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ +#if defined __thumb__ && !defined __thumb2__ +#include_next <common/bits/atomic.h> +#else #include <stdint.h> #include <sysdep.h> @@ -129,3 +132,5 @@ void __arm_link_error (void); #define __arch_compare_and_exchange_val_64_acq(mem, newval, oldval) \ ({ __arm_link_error (); oldval; }) + +#endif |