-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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.
- Loading branch information
H.J. Lu
authored and
Ulrich Drepper
committed
Jul 31, 2009
1 parent
1877ea1
commit 6f6f121
Showing
13 changed files
with
125 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
ifeq ($(subdir),csu) | ||
aux += init-arch | ||
gen-as-const-headers += ifunc-defines.sym | ||
endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#include "init-arch.h" | ||
#include <stddef.h> | ||
|
||
-- | ||
|
||
CPU_FEATURES_SIZE sizeof (struct cpu_features) | ||
KIND_OFFSET offsetof (struct cpu_features, kind) | ||
CPUID_OFFSET offsetof (struct cpu_features, cpuid) | ||
CPUID_SIZE sizeof (struct cpuid_registers) | ||
CPUID_EAX_OFFSET offsetof (struct cpuid_registers, eax) | ||
CPUID_EBX_OFFSET offsetof (struct cpuid_registers, ebx) | ||
CPUID_ECX_OFFSET offsetof (struct cpuid_registers, ecx) | ||
CPUID_EDX_OFFSET offsetof (struct cpuid_registers, edx) | ||
FAMILY_OFFSET offsetof (struct cpu_features, family) | ||
MODEL_OFFSET offsetof (struct cpu_features, model) | ||
|
||
COMMON_CPUID_INDEX_1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#define ENABLE_SSSE3_ON_ATOM | ||
|
||
#include <sysdeps/x86_64/multiarch/init-arch.c> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
#include <sysdeps/x86_64/multiarch/init-arch.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
#include <sysdeps/x86_64/multiarch/sched_cpucount.c> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
#include <sysdeps/unix/sysv/linux/x86_64/sysconf.c> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters