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
--u3/rZRmxL6MmkK24 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline 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 --u3/rZRmxL6MmkK24 Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="p4_mtrr.diff" 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; --u3/rZRmxL6MmkK24-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020912084258.H673>