1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-15 10:17:20 +00:00

GC workaround code for detecting pentium4's and disabling PSE and PG_G.

It's been ifdef'ed out for ages.
This commit is contained in:
Peter Wemm 2003-10-25 05:14:38 +00:00
parent 9b937d4836
commit b09a77f561
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=121494

View File

@ -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();