summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>2003-10-25 05:14:38 +0000
committerpeter <peter@FreeBSD.org>2003-10-25 05:14:38 +0000
commit133df7e75de2cc259b1182ba313b4f0e1926a8d0 (patch)
tree10f77ba5c6e159473b15defc647e3777bba3c0ff
parentbcfcc4ec03c6e17a313c90ea3e6c8365ac38a56f (diff)
downloadFreeBSD-src-133df7e75de2cc259b1182ba313b4f0e1926a8d0.zip
FreeBSD-src-133df7e75de2cc259b1182ba313b4f0e1926a8d0.tar.gz
GC workaround code for detecting pentium4's and disabling PSE and PG_G.
It's been ifdef'ed out for ages.
-rw-r--r--sys/i386/i386/pmap.c27
1 files changed, 0 insertions, 27 deletions
diff --git a/sys/i386/i386/pmap.c b/sys/i386/i386/pmap.c
index f39832d..f78e3eb 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();
OpenPOWER on IntegriCloud