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:
parent
44f4e4fe20
commit
87674bdf2a
@ -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;
|
||||
}
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user