summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core/glibc/glibc/0004-nativesdk-glibc-Allow-64-bit-atomics-for-x86.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-core/glibc/glibc/0004-nativesdk-glibc-Allow-64-bit-atomics-for-x86.patch')
-rw-r--r--meta/recipes-core/glibc/glibc/0004-nativesdk-glibc-Allow-64-bit-atomics-for-x86.patch39
1 files changed, 25 insertions, 14 deletions
diff --git a/meta/recipes-core/glibc/glibc/0004-nativesdk-glibc-Allow-64-bit-atomics-for-x86.patch b/meta/recipes-core/glibc/glibc/0004-nativesdk-glibc-Allow-64-bit-atomics-for-x86.patch
index 1ae2e33b4f..d6c9aac69d 100644
--- a/meta/recipes-core/glibc/glibc/0004-nativesdk-glibc-Allow-64-bit-atomics-for-x86.patch
+++ b/meta/recipes-core/glibc/glibc/0004-nativesdk-glibc-Allow-64-bit-atomics-for-x86.patch
@@ -1,7 +1,7 @@
1From a237553ccd15276462be2023057a017fa8ee5d7c Mon Sep 17 00:00:00 2001 1From ff0f4756f1a98202726c65745aca38354864e033 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com> 2From: Khem Raj <raj.khem@gmail.com>
3Date: Thu, 31 Dec 2015 14:35:35 -0800 3Date: Thu, 31 Dec 2015 14:35:35 -0800
4Subject: [PATCH] nativesdk-glibc: Allow 64 bit atomics for x86 4Subject: [PATCH 04/30] nativesdk-glibc: Allow 64 bit atomics for x86
5 5
6The fix consist of allowing 64bit atomic ops for x86. 6The fix consist of allowing 64bit atomic ops for x86.
7This should be safe for i586 and newer CPUs. 7This should be safe for i586 and newer CPUs.
@@ -13,19 +13,30 @@ Signed-off-by: Juro Bystricky <juro.bystricky@intel.com>
13Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> 13Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
14Signed-off-by: Khem Raj <raj.khem@gmail.com> 14Signed-off-by: Khem Raj <raj.khem@gmail.com>
15--- 15---
16 sysdeps/i386/atomic-machine.h | 2 +- 16 sysdeps/x86/atomic-machine.h | 3 +--
17 1 file changed, 1 insertion(+), 1 deletion(-) 17 1 file changed, 1 insertion(+), 2 deletions(-)
18 18
19diff --git a/sysdeps/i386/atomic-machine.h b/sysdeps/i386/atomic-machine.h 19diff --git a/sysdeps/x86/atomic-machine.h b/sysdeps/x86/atomic-machine.h
20index 272da5dd8f..409c759f14 100644 20index aa60ca4cd6..3e42e00183 100644
21--- a/sysdeps/i386/atomic-machine.h 21--- a/sysdeps/x86/atomic-machine.h
22+++ b/sysdeps/i386/atomic-machine.h 22+++ b/sysdeps/x86/atomic-machine.h
23@@ -54,7 +54,7 @@ typedef uintmax_t uatomic_max_t; 23@@ -58,15 +58,14 @@ typedef uintmax_t uatomic_max_t;
24 # endif
25 #endif 24 #endif
26 25
27-#define __HAVE_64B_ATOMICS 0 26 #define USE_ATOMIC_COMPILER_BUILTINS 1
28+#define __HAVE_64B_ATOMICS 1 27+# define __HAVE_64B_ATOMICS 1
29 #define USE_ATOMIC_COMPILER_BUILTINS 0
30 #define ATOMIC_EXCHANGE_USES_CAS 0
31 28
29 #ifdef __x86_64__
30-# define __HAVE_64B_ATOMICS 1
31 # define SP_REG "rsp"
32 # define SEG_REG "fs"
33 # define BR_CONSTRAINT "q"
34 # define IBR_CONSTRAINT "iq"
35 #else
36-# define __HAVE_64B_ATOMICS 0
37 # define SP_REG "esp"
38 # define SEG_REG "gs"
39 # define BR_CONSTRAINT "r"
40--
412.20.1
42