This patch enables FreeBSD i686 MTRR support on Intel Pentium

4/XEON processors, which are not currently recognized.

Submitted by:	 Christian Zander <zander@minion.de>
This commit is contained in:
Matthew N. Dodd 2002-09-19 18:53:49 +00:00
parent 0be15dec9a
commit 12f20b19da
2 changed files with 2 additions and 2 deletions

View File

@ -602,7 +602,7 @@ i686_mem_drvinit(void *unused)
{ {
/* Try for i686 MTRRs */ /* Try for i686 MTRRs */
if ((cpu_feature & CPUID_MTRR) && 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, "GenuineIntel") == 0) ||
(strcmp(cpu_vendor, "AuthenticAMD") == 0))) { (strcmp(cpu_vendor, "AuthenticAMD") == 0))) {
mem_range_softc.mr_op = &i686_mrops; mem_range_softc.mr_op = &i686_mrops;

View File

@ -602,7 +602,7 @@ i686_mem_drvinit(void *unused)
{ {
/* Try for i686 MTRRs */ /* Try for i686 MTRRs */
if ((cpu_feature & CPUID_MTRR) && 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, "GenuineIntel") == 0) ||
(strcmp(cpu_vendor, "AuthenticAMD") == 0))) { (strcmp(cpu_vendor, "AuthenticAMD") == 0))) {
mem_range_softc.mr_op = &i686_mrops; mem_range_softc.mr_op = &i686_mrops;