diff options
author | mdodd <mdodd@FreeBSD.org> | 2002-09-19 18:53:49 +0000 |
---|---|---|
committer | mdodd <mdodd@FreeBSD.org> | 2002-09-19 18:53:49 +0000 |
commit | b2eb3d57ff032ce0f305469f8e75f30f6dd6e467 (patch) | |
tree | 75ca2eafd893cec740607aca3cb8d16e3441c8a2 | |
parent | 077f31b2a19dfc472d3a8c6d827d727ae3c69bba (diff) | |
download | FreeBSD-src-b2eb3d57ff032ce0f305469f8e75f30f6dd6e467.zip FreeBSD-src-b2eb3d57ff032ce0f305469f8e75f30f6dd6e467.tar.gz |
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>
-rw-r--r-- | sys/amd64/amd64/amd64_mem.c | 2 | ||||
-rw-r--r-- | sys/i386/i386/i686_mem.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/sys/amd64/amd64/amd64_mem.c b/sys/amd64/amd64/amd64_mem.c index 672e63f..fcff3ce 100644 --- a/sys/amd64/amd64/amd64_mem.c +++ b/sys/amd64/amd64/amd64_mem.c @@ -602,7 +602,7 @@ i686_mem_drvinit(void *unused) { /* 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; diff --git a/sys/i386/i386/i686_mem.c b/sys/i386/i386/i686_mem.c index 672e63f..fcff3ce 100644 --- a/sys/i386/i386/i686_mem.c +++ b/sys/i386/i386/i686_mem.c @@ -602,7 +602,7 @@ i686_mem_drvinit(void *unused) { /* 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; |