Enable MTRR support for K7 (Athlon) processors, which happens to have the

same interface as Intel's P6 family has.  Incidentally, I had disabled
it in the first place since I knew the K7s were coming out soon but
did not want to assume they'd have the same MTRR interface as Intel's
chips.

Submitted by:	Ville-Pertti Keinonen <will@iki.fi>
This commit is contained in:
green 1999-10-12 22:53:05 +00:00
parent 7ec76e0019
commit 5f17823e6d
2 changed files with 8 additions and 6 deletions

View File

@ -575,9 +575,10 @@ static void
i686_mem_drvinit(void *unused)
{
/* Try for i686 MTRRs */
if (!strcmp(cpu_vendor, "GenuineIntel") &&
cpu_feature & CPUID_MTRR &&
(cpu_id & 0xf00) == 0x600) {
if ((cpu_feature & CPUID_MTRR) &&
((cpu_id & 0xf00) == 0x600) &&
((strcmp(cpu_vendor, "GenuineIntel") == 0) ||
(strcmp(cpu_vendor, "AuthenticAMD") == 0))) {
mem_range_softc.mr_op = &i686_mrops;
}
}

View File

@ -575,9 +575,10 @@ static void
i686_mem_drvinit(void *unused)
{
/* Try for i686 MTRRs */
if (!strcmp(cpu_vendor, "GenuineIntel") &&
cpu_feature & CPUID_MTRR &&
(cpu_id & 0xf00) == 0x600) {
if ((cpu_feature & CPUID_MTRR) &&
((cpu_id & 0xf00) == 0x600) &&
((strcmp(cpu_vendor, "GenuineIntel") == 0) ||
(strcmp(cpu_vendor, "AuthenticAMD") == 0))) {
mem_range_softc.mr_op = &i686_mrops;
}
}