summaryrefslogtreecommitdiff
path: root/recipes/glibc/glibc-2.3.2/glibc23-cmov.patch
diff options
context:
space:
mode:
authorDenys Dmytriyenko <denis@denix.org>2009-03-17 14:32:59 -0400
committerDenys Dmytriyenko <denis@denix.org>2009-03-17 14:32:59 -0400
commit709c4d66e0b107ca606941b988bad717c0b45d9b (patch)
tree37ee08b1eb308f3b2b6426d5793545c38396b838 /recipes/glibc/glibc-2.3.2/glibc23-cmov.patch
parentfa6cd5a3b993f16c27de4ff82b42684516d433ba (diff)
rename packages/ to recipes/ per earlier agreement
See links below for more details: http://thread.gmane.org/gmane.comp.handhelds.openembedded/21326 http://thread.gmane.org/gmane.comp.handhelds.openembedded/21816 Signed-off-by: Denys Dmytriyenko <denis@denix.org> Acked-by: Mike Westerhof <mwester@dls.net> Acked-by: Philip Balister <philip@balister.org> Acked-by: Khem Raj <raj.khem@gmail.com> Acked-by: Marcin Juszkiewicz <hrw@openembedded.org> Acked-by: Koen Kooi <koen@openembedded.org> Acked-by: Frans Meulenbroeks <fransmeulenbroeks@gmail.com>
Diffstat (limited to 'recipes/glibc/glibc-2.3.2/glibc23-cmov.patch')
-rw-r--r--recipes/glibc/glibc-2.3.2/glibc23-cmov.patch36
1 files changed, 36 insertions, 0 deletions
diff --git a/recipes/glibc/glibc-2.3.2/glibc23-cmov.patch b/recipes/glibc/glibc-2.3.2/glibc23-cmov.patch
new file mode 100644
index 0000000000..73b20dd225
--- /dev/null
+++ b/recipes/glibc/glibc-2.3.2/glibc23-cmov.patch
@@ -0,0 +1,36 @@
+--- libc/sysdeps/unix/sysv/linux/i386/dl-procinfo.h 2002-09-22 06:14:11.000000000 +0900
++++ libc/sysdeps/unix/sysv/linux/i386/dl-procinfo.h.new 2003-01-19 01:18:55.000000000 +0900
+@@ -92,7 +92,7 @@
+ HWCAP_I386_AMD3D = 1 << 31,
+
+ /* XXX Which others to add here? */
+- HWCAP_IMPORTANT = (HWCAP_I386_MMX)
++ HWCAP_IMPORTANT = (HWCAP_I386_MMX | HWCAP_I386_CMOV)
+
+ };
+
+--- libc/sysdeps/generic/dl-cache.c 2003-02-02 05:33:47.000000000 +0900
++++ libc/sysdeps/generic/dl-cache.c.new1 2003-02-21 09:18:19.000000000 +0900
+@@ -260,6 +260,12 @@
+ if (platform != (uint64_t) -1)
+ platform = 1ULL << platform;
+
++#ifdef USE_TLS
++# define TLS_BIT (1ULL << 63)
++#else
++# define TLS_BIT 0
++#endif
++
+ /* Only accept hwcap if it's for the right platform. */
+ #define HWCAP_CHECK \
+ if (GL(dl_osversion) \
+@@ -271,7 +277,8 @@
+ && (lib->hwcap & _DL_HWCAP_PLATFORM) != platform) \
+ continue; \
+ if (hwcap \
+- && ((lib->hwcap & *hwcap & ~_DL_HWCAP_PLATFORM) > *hwcap)) \
++ && ((lib->hwcap & ~_DL_HWCAP_PLATFORM & (*hwcap | TLS_BIT)) < \
++ (lib->hwcap & ~_DL_HWCAP_PLATFORM))) \
+ continue
+ SEARCH_CACHE (cache_new);
+ }