about summary refs log tree commit diff
path: root/sysdeps/i386/i686/cacheinfo.c
diff options
context:
space:
mode:
authorH.J. Lu <hongjiu.lu@intel.com>2009-07-31 11:53:35 -0700
committerUlrich Drepper <drepper@redhat.com>2009-07-31 11:53:35 -0700
commit6f6f1215f68e5ae15ad18373234815fe7b2acc9e (patch)
treec6ca7c84df2663d2af45a5ebb47e1cb7d181e31d /sysdeps/i386/i686/cacheinfo.c
parent1877ea16ca0714abd715d6ce0aa1b840c3850241 (diff)
downloadglibc-6f6f1215f68e5ae15ad18373234815fe7b2acc9e.tar.gz
glibc-6f6f1215f68e5ae15ad18373234815fe7b2acc9e.tar.xz
glibc-6f6f1215f68e5ae15ad18373234815fe7b2acc9e.zip
Support multiarch for i686.
This patch adds multiarch support when configured for i686.  I modified
some x86-64 functions to support 32bit. I will contribute 32bit SSE string
and memory functions later.
Diffstat (limited to 'sysdeps/i386/i686/cacheinfo.c')
-rw-r--r--sysdeps/i386/i686/cacheinfo.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/sysdeps/i386/i686/cacheinfo.c b/sysdeps/i386/i686/cacheinfo.c
new file mode 100644
index 0000000000..82e4cd223e
--- /dev/null
+++ b/sysdeps/i386/i686/cacheinfo.c
@@ -0,0 +1,8 @@
+#define __x86_64_data_cache_size_half __x86_data_cache_size_half
+#define __x86_64_shared_cache_size __x86_shared_cache_size
+#define __x86_64_shared_cache_size_half __x86_shared_cache_size_half
+
+#define DISABLE_PREFETCHW
+#define DISABLE_PREFERRED_MEMORY_INSTRUCTION
+
+#include <sysdeps/x86_64/cacheinfo.c>