summaryrefslogtreecommitdiffstats
path: root/sys/i386
diff options
context:
space:
mode:
authorgreen <green@FreeBSD.org>1999-10-12 22:53:05 +0000
committergreen <green@FreeBSD.org>1999-10-12 22:53:05 +0000
commit5f17823e6d7db950b2057df4693ecd2035b73039 (patch)
tree1038958e28d1662b96725a80a99d00378214cab3 /sys/i386
parent7ec76e001993314b77b5eb328935241e9ffc4f6f (diff)
downloadFreeBSD-src-5f17823e6d7db950b2057df4693ecd2035b73039.zip
FreeBSD-src-5f17823e6d7db950b2057df4693ecd2035b73039.tar.gz
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>
Diffstat (limited to 'sys/i386')
-rw-r--r--sys/i386/i386/i686_mem.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/sys/i386/i386/i686_mem.c b/sys/i386/i386/i686_mem.c
index 4be3d13..90b72b4 100644
--- a/sys/i386/i386/i686_mem.c
+++ b/sys/i386/i386/i686_mem.c
@@ -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;
}
}
OpenPOWER on IntegriCloud