Date: Thu, 12 Sep 2002 08:42:58 +0200 From: Christian Zander <zander@minion.de> To: freebsd-hackers@freebsd.org Subject: Pentium 4/i686 MTRRs Message-ID: <20020912084258.H673@chronos>
next in thread | raw e-mail | index | archive | help
[-- Attachment #1 --]
Hi,
With several mentions of FreeBSD on/with Pentium 4s, I wanted to
bring up one thing that I noticed. At this point, the i686 MTRR
code in RELENG_4 doesn't recognize Pentium 4 or XEON processors.
As far as I can tell from the documentation, they should be. The
attached patch enables i686 MTRR support on these processors.
--
christian zander
zander@minion.de
[-- Attachment #2 --]
diff -ru cvs/4.6/i386/i386/i686_mem.c sys/i386/i386/i686_mem.c
--- cvs/4.6/i386/i386/i686_mem.c Fri Jul 5 16:33:28 2002
+++ sys/i386/i386/i686_mem.c Fri Jul 5 16:52:59 2002
@@ -595,7 +595,7 @@
{
/* Try for i686 MTRRs */
if ((cpu_feature & CPUID_MTRR) &&
- ((cpu_id & 0xf00) == 0x600) &&
+ ((cpu_id & 0xf00) == 0x600 || (cpu_id & 0xf00) == 0xf00) &&
((strcmp(cpu_vendor, "GenuineIntel") == 0) ||
(strcmp(cpu_vendor, "AuthenticAMD") == 0))) {
mem_range_softc.mr_op = &i686_mrops;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020912084258.H673>
