diff options
author | Willy Tarreau <w@1wt.eu> | 2008-09-21 19:57:08 +0200 |
---|---|---|
committer | Willy Tarreau <w@1wt.eu> | 2008-11-09 23:30:25 +0100 |
commit | 444f269247924e73e25c76c9218f2c14edd56d48 (patch) | |
tree | 9262030f31101f3f38058521a3eea748bef7b43c | |
parent | ac7e0b7f8cf5f42b2e322f7d3f1496b6466224af (diff) | |
download | linux-2.4-444f269247924e73e25c76c9218f2c14edd56d48.tar.gz |
i386: add configuration option for AMD Geode GX/LX
The Geode GX/LX processors support TSC, CMOV, MMX and 3DNow and as
such benefit from a dedicated configuration entry.
Signed-off-by: Willy Tarreau <w@1wt.eu>
-rw-r--r-- | Documentation/Configure.help | 1 | ||||
-rw-r--r-- | arch/i386/Makefile | 4 | ||||
-rw-r--r-- | arch/i386/config.in | 12 |
3 files changed, 17 insertions, 0 deletions
diff --git a/Documentation/Configure.help b/Documentation/Configure.help index ed2b560e2279f1..4a4635acd81d29 100644 --- a/Documentation/Configure.help +++ b/Documentation/Configure.help @@ -4831,6 +4831,7 @@ CONFIG_M386 - "Winchip-2A" for IDT Winchips with 3dNow! capabilities. - "CyrixIII" for VIA Cyrix III or VIA C3. - "VIA C3-2 for VIA C3-2 "Nehemiah" (model 9 and above). + - "Geode GX/LX" for AMD/NSC Geode GX and AMD Geode LX. If you don't know what to do, choose "386". diff --git a/arch/i386/Makefile b/arch/i386/Makefile index ce5a64b2f03d5d..ac57139d5ded98 100644 --- a/arch/i386/Makefile +++ b/arch/i386/Makefile @@ -71,6 +71,10 @@ CFLAGS += -march=i686 CFLAGS += $(call check_gcc,-falign-functions=0 -falign-jumps=0 -falign-loops=0,-malign-functions=0 -malign-jumps=0 -malign-loops=0) endif +ifdef CONFIG_MGEODE_LX +CFLAGS += -march=i686 +endif + ifdef CONFIG_MWINCHIPC6 CFLAGS += -march=i586 endif diff --git a/arch/i386/config.in b/arch/i386/config.in index 629fe416c1a18b..593fab1cadaada 100644 --- a/arch/i386/config.in +++ b/arch/i386/config.in @@ -39,6 +39,7 @@ choice 'Processor family' \ Opteron/Athlon64/Hammer/K8 CONFIG_MK8 \ Elan CONFIG_MELAN \ Crusoe CONFIG_MCRUSOE \ + Geode-GX/LX CONFIG_MGEODE_LX \ Winchip-C6 CONFIG_MWINCHIPC6 \ Winchip-2 CONFIG_MWINCHIP2 \ Winchip-2A/Winchip-3 CONFIG_MWINCHIP3D \ @@ -172,6 +173,17 @@ if [ "$CONFIG_MCRUSOE" = "y" ]; then define_bool CONFIG_X86_HAS_TSC y define_bool CONFIG_X86_F00F_WORKS_OK y fi +if [ "$CONFIG_MGEODE_LX" = "y" ]; then + define_int CONFIG_X86_L1_CACHE_SHIFT 5 + define_bool CONFIG_X86_USE_STRING_486 y + define_bool CONFIG_X86_ALIGNMENT_16 y + define_bool CONFIG_X86_HAS_TSC y + define_bool CONFIG_X86_PPRO_FENCE y + define_bool CONFIG_X86_F00F_WORKS_OK y + define_bool CONFIG_X86_USE_3DNOW y + define_bool CONFIG_X86_USE_PPRO_CHECKSUM y + define_bool CONFIG_X86_OOSTORE y +fi if [ "$CONFIG_MWINCHIPC6" = "y" ]; then define_int CONFIG_X86_L1_CACHE_SHIFT 5 define_bool CONFIG_X86_ALIGNMENT_16 y |