diff options
Diffstat (limited to 'meta/recipes-core/glibc/glibc/0006-nativesdk-glibc-Allow-64-bit-atomics-for-x86.patch')
-rw-r--r-- | meta/recipes-core/glibc/glibc/0006-nativesdk-glibc-Allow-64-bit-atomics-for-x86.patch | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/meta/recipes-core/glibc/glibc/0006-nativesdk-glibc-Allow-64-bit-atomics-for-x86.patch b/meta/recipes-core/glibc/glibc/0006-nativesdk-glibc-Allow-64-bit-atomics-for-x86.patch index 172ade8d97..56eaaed4b7 100644 --- a/meta/recipes-core/glibc/glibc/0006-nativesdk-glibc-Allow-64-bit-atomics-for-x86.patch +++ b/meta/recipes-core/glibc/glibc/0006-nativesdk-glibc-Allow-64-bit-atomics-for-x86.patch | |||
@@ -1,4 +1,4 @@ | |||
1 | From 19e3e45eb1838ee80af13c3d27fcff446773211e Mon Sep 17 00:00:00 2001 | 1 | From 3a94365c730d174a3c30c6d9282e6ca12d9ad091 Mon Sep 17 00:00:00 2001 |
2 | From: Khem Raj <raj.khem@gmail.com> | 2 | From: Khem Raj <raj.khem@gmail.com> |
3 | Date: Thu, 31 Dec 2015 14:35:35 -0800 | 3 | Date: Thu, 31 Dec 2015 14:35:35 -0800 |
4 | Subject: [PATCH] nativesdk-glibc: Allow 64 bit atomics for x86 | 4 | Subject: [PATCH] nativesdk-glibc: Allow 64 bit atomics for x86 |
@@ -13,14 +13,14 @@ Signed-off-by: Juro Bystricky <juro.bystricky@intel.com> | |||
13 | Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> | 13 | Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> |
14 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | 14 | Signed-off-by: Khem Raj <raj.khem@gmail.com> |
15 | --- | 15 | --- |
16 | sysdeps/x86/atomic-machine.h | 3 +-- | 16 | sysdeps/x86/atomic-machine.h | 7 +------ |
17 | 1 file changed, 1 insertion(+), 2 deletions(-) | 17 | 1 file changed, 1 insertion(+), 6 deletions(-) |
18 | 18 | ||
19 | diff --git a/sysdeps/x86/atomic-machine.h b/sysdeps/x86/atomic-machine.h | 19 | diff --git a/sysdeps/x86/atomic-machine.h b/sysdeps/x86/atomic-machine.h |
20 | index 695222e4fa..9d39bfdbd5 100644 | 20 | index cfd395087b..28a937c468 100644 |
21 | --- a/sysdeps/x86/atomic-machine.h | 21 | --- a/sysdeps/x86/atomic-machine.h |
22 | +++ b/sysdeps/x86/atomic-machine.h | 22 | +++ b/sysdeps/x86/atomic-machine.h |
23 | @@ -52,15 +52,14 @@ typedef uintmax_t uatomic_max_t; | 23 | @@ -26,19 +26,14 @@ |
24 | #define LOCK_PREFIX "lock;" | 24 | #define LOCK_PREFIX "lock;" |
25 | 25 | ||
26 | #define USE_ATOMIC_COMPILER_BUILTINS 1 | 26 | #define USE_ATOMIC_COMPILER_BUILTINS 1 |
@@ -33,6 +33,10 @@ index 695222e4fa..9d39bfdbd5 100644 | |||
33 | # define BR_CONSTRAINT "q" | 33 | # define BR_CONSTRAINT "q" |
34 | # define IBR_CONSTRAINT "iq" | 34 | # define IBR_CONSTRAINT "iq" |
35 | #else | 35 | #else |
36 | -/* Since the Pentium, i386 CPUs have supported 64-bit atomics, but the | ||
37 | - i386 psABI supplement provides only 4-byte alignment for uint64_t | ||
38 | - inside structs, so it is currently not possible to use 64-bit | ||
39 | - atomics on this platform. */ | ||
36 | -# define __HAVE_64B_ATOMICS 0 | 40 | -# define __HAVE_64B_ATOMICS 0 |
37 | # define SP_REG "esp" | 41 | # define SP_REG "esp" |
38 | # define SEG_REG "gs" | 42 | # define SEG_REG "gs" |