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:
parent
0be15dec9a
commit
12f20b19da
@ -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;
|
||||||
|
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user