diff options
author | green <green@FreeBSD.org> | 1999-10-12 22:53:05 +0000 |
---|---|---|
committer | green <green@FreeBSD.org> | 1999-10-12 22:53:05 +0000 |
commit | 5f17823e6d7db950b2057df4693ecd2035b73039 (patch) | |
tree | 1038958e28d1662b96725a80a99d00378214cab3 /sys/amd64 | |
parent | 7ec76e001993314b77b5eb328935241e9ffc4f6f (diff) | |
download | FreeBSD-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/amd64')
-rw-r--r-- | sys/amd64/amd64/amd64_mem.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sys/amd64/amd64/amd64_mem.c b/sys/amd64/amd64/amd64_mem.c index 4be3d13..90b72b4 100644 --- a/sys/amd64/amd64/amd64_mem.c +++ b/sys/amd64/amd64/amd64_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; } } |