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:
Brian Feldman 1999-10-12 22:53:05 +00:00
parent 44f4e4fe20
commit 87674bdf2a
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;
}
}