diff options
-rw-r--r-- | arch/x86/Kconfig.cpu | 4 | ||||
-rw-r--r-- | arch/x86/kernel/cpu/Makefile | 1 | ||||
-rw-r--r-- | arch/x86/kernel/cpu/nexgen.c | 59 | ||||
-rw-r--r-- | arch/x86/mm/init_32.c | 6 | ||||
-rw-r--r-- | include/asm-x86/processor.h | 1 |
5 files changed, 5 insertions, 66 deletions
diff --git a/arch/x86/Kconfig.cpu b/arch/x86/Kconfig.cpu index 57072f2716f9..4da3cdb9c1b1 100644 --- a/arch/x86/Kconfig.cpu +++ b/arch/x86/Kconfig.cpu | |||
@@ -21,8 +21,8 @@ config M386 | |||
21 | 21 | ||
22 | Here are the settings recommended for greatest speed: | 22 | Here are the settings recommended for greatest speed: |
23 | - "386" for the AMD/Cyrix/Intel 386DX/DXL/SL/SLC/SX, Cyrix/TI | 23 | - "386" for the AMD/Cyrix/Intel 386DX/DXL/SL/SLC/SX, Cyrix/TI |
24 | 486DLC/DLC2, UMC 486SX-S and NexGen Nx586. Only "386" kernels | 24 | 486DLC/DLC2, and UMC 486SX-S. Only "386" kernels will run on a 386 |
25 | will run on a 386 class machine. | 25 | class machine. |
26 | - "486" for the AMD/Cyrix/IBM/Intel 486DX/DX2/DX4 or | 26 | - "486" for the AMD/Cyrix/IBM/Intel 486DX/DX2/DX4 or |
27 | SL/SLC/SLC2/SLC3/SX/SX2 and UMC U5D or U5S. | 27 | SL/SLC/SLC2/SLC3/SX/SX2 and UMC U5D or U5S. |
28 | - "586" for generic Pentium CPUs lacking the TSC | 28 | - "586" for generic Pentium CPUs lacking the TSC |
diff --git a/arch/x86/kernel/cpu/Makefile b/arch/x86/kernel/cpu/Makefile index ee7c45235e54..a0c6f8190887 100644 --- a/arch/x86/kernel/cpu/Makefile +++ b/arch/x86/kernel/cpu/Makefile | |||
@@ -11,7 +11,6 @@ obj-$(CONFIG_X86_32) += cyrix.o | |||
11 | obj-$(CONFIG_X86_32) += centaur.o | 11 | obj-$(CONFIG_X86_32) += centaur.o |
12 | obj-$(CONFIG_X86_32) += transmeta.o | 12 | obj-$(CONFIG_X86_32) += transmeta.o |
13 | obj-$(CONFIG_X86_32) += intel.o | 13 | obj-$(CONFIG_X86_32) += intel.o |
14 | obj-$(CONFIG_X86_32) += nexgen.o | ||
15 | obj-$(CONFIG_X86_32) += umc.o | 14 | obj-$(CONFIG_X86_32) += umc.o |
16 | 15 | ||
17 | obj-$(CONFIG_X86_MCE) += mcheck/ | 16 | obj-$(CONFIG_X86_MCE) += mcheck/ |
diff --git a/arch/x86/kernel/cpu/nexgen.c b/arch/x86/kernel/cpu/nexgen.c deleted file mode 100644 index 5d5e1c134123..000000000000 --- a/arch/x86/kernel/cpu/nexgen.c +++ /dev/null | |||
@@ -1,59 +0,0 @@ | |||
1 | #include <linux/kernel.h> | ||
2 | #include <linux/init.h> | ||
3 | #include <linux/string.h> | ||
4 | #include <asm/processor.h> | ||
5 | |||
6 | #include "cpu.h" | ||
7 | |||
8 | /* | ||
9 | * Detect a NexGen CPU running without BIOS hypercode new enough | ||
10 | * to have CPUID. (Thanks to Herbert Oppmann) | ||
11 | */ | ||
12 | |||
13 | static int __cpuinit deep_magic_nexgen_probe(void) | ||
14 | { | ||
15 | int ret; | ||
16 | |||
17 | __asm__ __volatile__ ( | ||
18 | " movw $0x5555, %%ax\n" | ||
19 | " xorw %%dx,%%dx\n" | ||
20 | " movw $2, %%cx\n" | ||
21 | " divw %%cx\n" | ||
22 | " movl $0, %%eax\n" | ||
23 | " jnz 1f\n" | ||
24 | " movl $1, %%eax\n" | ||
25 | "1:\n" | ||
26 | : "=a" (ret) : : "cx", "dx"); | ||
27 | return ret; | ||
28 | } | ||
29 | |||
30 | static void __cpuinit init_nexgen(struct cpuinfo_x86 *c) | ||
31 | { | ||
32 | c->x86_cache_size = 256; /* A few had 1 MB... */ | ||
33 | } | ||
34 | |||
35 | static void __cpuinit nexgen_identify(struct cpuinfo_x86 *c) | ||
36 | { | ||
37 | /* Detect NexGen with old hypercode */ | ||
38 | if (deep_magic_nexgen_probe()) | ||
39 | strcpy(c->x86_vendor_id, "NexGenDriven"); | ||
40 | } | ||
41 | |||
42 | static struct cpu_dev nexgen_cpu_dev __cpuinitdata = { | ||
43 | .c_vendor = "Nexgen", | ||
44 | .c_ident = { "NexGenDriven" }, | ||
45 | .c_models = { | ||
46 | { .vendor = X86_VENDOR_NEXGEN, | ||
47 | .family = 5, | ||
48 | .model_names = { [1] = "Nx586" } | ||
49 | }, | ||
50 | }, | ||
51 | .c_init = init_nexgen, | ||
52 | .c_identify = nexgen_identify, | ||
53 | }; | ||
54 | |||
55 | int __init nexgen_init_cpu(void) | ||
56 | { | ||
57 | cpu_devs[X86_VENDOR_NEXGEN] = &nexgen_cpu_dev; | ||
58 | return 0; | ||
59 | } | ||
diff --git a/arch/x86/mm/init_32.c b/arch/x86/mm/init_32.c index baf7c4f643c8..4a4761892951 100644 --- a/arch/x86/mm/init_32.c +++ b/arch/x86/mm/init_32.c | |||
@@ -566,9 +566,9 @@ void __init paging_init(void) | |||
566 | 566 | ||
567 | /* | 567 | /* |
568 | * Test if the WP bit works in supervisor mode. It isn't supported on 386's | 568 | * Test if the WP bit works in supervisor mode. It isn't supported on 386's |
569 | * and also on some strange 486's (NexGen etc.). All 586+'s are OK. This | 569 | * and also on some strange 486's. All 586+'s are OK. This used to involve |
570 | * used to involve black magic jumps to work around some nasty CPU bugs, | 570 | * black magic jumps to work around some nasty CPU bugs, but fortunately the |
571 | * but fortunately the switch to using exceptions got rid of all that. | 571 | * switch to using exceptions got rid of all that. |
572 | */ | 572 | */ |
573 | static void __init test_wp_bit(void) | 573 | static void __init test_wp_bit(void) |
574 | { | 574 | { |
diff --git a/include/asm-x86/processor.h b/include/asm-x86/processor.h index e6bf92ddeb21..117343b0c271 100644 --- a/include/asm-x86/processor.h +++ b/include/asm-x86/processor.h | |||
@@ -118,7 +118,6 @@ struct cpuinfo_x86 { | |||
118 | #define X86_VENDOR_CYRIX 1 | 118 | #define X86_VENDOR_CYRIX 1 |
119 | #define X86_VENDOR_AMD 2 | 119 | #define X86_VENDOR_AMD 2 |
120 | #define X86_VENDOR_UMC 3 | 120 | #define X86_VENDOR_UMC 3 |
121 | #define X86_VENDOR_NEXGEN 4 | ||
122 | #define X86_VENDOR_CENTAUR 5 | 121 | #define X86_VENDOR_CENTAUR 5 |
123 | #define X86_VENDOR_TRANSMETA 7 | 122 | #define X86_VENDOR_TRANSMETA 7 |
124 | #define X86_VENDOR_NSC 8 | 123 | #define X86_VENDOR_NSC 8 |