From 133df7e75de2cc259b1182ba313b4f0e1926a8d0 Mon Sep 17 00:00:00 2001 From: peter Date: Sat, 25 Oct 2003 05:14:38 +0000 Subject: [PATCH] GC workaround code for detecting pentium4's and disabling PSE and PG_G. It's been ifdef'ed out for ages. --- sys/i386/i386/pmap.c | 27 --------------------------- 1 file changed, 27 deletions(-) diff --git a/sys/i386/i386/pmap.c b/sys/i386/i386/pmap.c index f39832de057..f78e3ebd8a1 100644 --- a/sys/i386/i386/pmap.c +++ b/sys/i386/i386/pmap.c @@ -274,13 +274,6 @@ pmap_kmem_choose(vm_offset_t addr) { vm_offset_t newaddr = addr; -#ifdef I686_CPU_not /* Problem seems to have gone away */ - /* Deal with un-resolved Pentium4 issues */ - if (cpu_class == CPUCLASS_686 && - strcmp(cpu_vendor, "GenuineIntel") == 0 && - (cpu_id & 0xf00) == 0xf00) - return newaddr; -#endif #ifndef DISABLE_PSE if (cpu_feature & CPUID_PSE) newaddr = (addr + PDRMASK) & ~PDRMASK; @@ -396,26 +389,6 @@ pmap_bootstrap(firstaddr, loadaddr) for (i = 0; i < NKPT; i++) PTD[i] = 0; -#ifdef I686_CPU_not /* Problem seems to have gone away */ - /* Deal with un-resolved Pentium4 issues */ - if (cpu_class == CPUCLASS_686 && - strcmp(cpu_vendor, "GenuineIntel") == 0 && - (cpu_id & 0xf00) == 0xf00) { - printf("Warning: Pentium 4 cpu: PG_G disabled (global flag)\n"); - pgeflag = 0; - } -#endif - -#ifdef I686_CPU_not /* Problem seems to have gone away */ - /* Deal with un-resolved Pentium4 issues */ - if (cpu_class == CPUCLASS_686 && - strcmp(cpu_vendor, "GenuineIntel") == 0 && - (cpu_id & 0xf00) == 0xf00) { - printf("Warning: Pentium 4 cpu: PG_PS disabled (4MB pages)\n"); - pseflag = 0; - } -#endif - /* Turn on PG_G on kernel page(s) */ pmap_set_pg(); -- 2.45.2