aboutsummaryrefslogtreecommitdiff
path: root/sys/i386
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2008-02-25 22:42:33 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2008-02-25 22:42:33 +0000
commit23e30a506bf2eae66c5478ca0a9a7b01e5c3f448 (patch)
tree2d7ad98ff7e557c6d11c19bf634eadae4c6b2b5a /sys/i386
parente822ea5b2a5c2f484f8b51ddf5c87bc7e3ae1557 (diff)
downloadsrc-23e30a506bf2eae66c5478ca0a9a7b01e5c3f448.tar.gz
src-23e30a506bf2eae66c5478ca0a9a7b01e5c3f448.zip
Support the VIA C7 Eden CPU and treat it just like a C7 Esther. We may
want to adjust this code to just assume that all CPUs >= Esther should be checked for the extended cpuid flags register. MFC after: 3 days PR: i386/119491
Notes
Notes: svn path=/head/; revision=176571
Diffstat (limited to 'sys/i386')
-rw-r--r--sys/i386/i386/identcpu.c3
-rw-r--r--sys/i386/i386/initcpu.c1
2 files changed, 4 insertions, 0 deletions
diff --git a/sys/i386/i386/identcpu.c b/sys/i386/i386/identcpu.c
index 234037ee1368..075919c3b379 100644
--- a/sys/i386/i386/identcpu.c
+++ b/sys/i386/i386/identcpu.c
@@ -585,6 +585,9 @@ printcpuinfo(void)
goto via_common;
case 0x6a0:
strcpy(cpu_model, "VIA C7 Esther");
+ goto via_common;
+ case 0x6d0:
+ strcpy(cpu_model, "VIA C7 Eden");
via_common:
do_cpuid(0xc0000000, regs);
i = regs[0];
diff --git a/sys/i386/i386/initcpu.c b/sys/i386/i386/initcpu.c
index d6ef32a86c8f..0c212e474808 100644
--- a/sys/i386/i386/initcpu.c
+++ b/sys/i386/i386/initcpu.c
@@ -683,6 +683,7 @@ initializecpu(void)
break;
/* fall through. */
case 0x6a0:
+ case 0x6d0:
init_via();
break;
default: