Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame^] | 1 | From a237553ccd15276462be2023057a017fa8ee5d7c Mon Sep 17 00:00:00 2001 |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 2 | From: Khem Raj <raj.khem@gmail.com> |
| 3 | Date: Thu, 31 Dec 2015 14:35:35 -0800 |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame^] | 4 | Subject: [PATCH] nativesdk-glibc: Allow 64 bit atomics for x86 |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 5 | |
| 6 | The fix consist of allowing 64bit atomic ops for x86. |
| 7 | This should be safe for i586 and newer CPUs. |
| 8 | It also makes the synchronization more efficient. |
| 9 | |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 10 | Upstream-Status: Inappropriate [OE-Specific] |
| 11 | |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 12 | Signed-off-by: Juro Bystricky <juro.bystricky@intel.com> |
| 13 | Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> |
| 14 | Signed-off-by: Khem Raj <raj.khem@gmail.com> |
| 15 | --- |
| 16 | sysdeps/i386/atomic-machine.h | 2 +- |
| 17 | 1 file changed, 1 insertion(+), 1 deletion(-) |
| 18 | |
| 19 | diff --git a/sysdeps/i386/atomic-machine.h b/sysdeps/i386/atomic-machine.h |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 20 | index 272da5dd8f..409c759f14 100644 |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 21 | --- a/sysdeps/i386/atomic-machine.h |
| 22 | +++ b/sysdeps/i386/atomic-machine.h |
| 23 | @@ -54,7 +54,7 @@ typedef uintmax_t uatomic_max_t; |
| 24 | # endif |
| 25 | #endif |
| 26 | |
| 27 | -#define __HAVE_64B_ATOMICS 0 |
| 28 | +#define __HAVE_64B_ATOMICS 1 |
| 29 | #define USE_ATOMIC_COMPILER_BUILTINS 0 |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 30 | #define ATOMIC_EXCHANGE_USES_CAS 0 |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 31 | |