From 4edc74d5710bc9ed9d5d03a3c50039a08ca3ca1d Mon Sep 17 00:00:00 2001 From: Thomas Nikolajsen Date: Wed, 15 Jul 2009 18:29:25 +0200 Subject: [PATCH] i386/identcpu.c: Add VIA Nano support Obtained-from: FreeBSD --- sys/platform/pc32/i386/identcpu.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/sys/platform/pc32/i386/identcpu.c b/sys/platform/pc32/i386/identcpu.c index 551a11bbb3..4120c4c5c1 100644 --- a/sys/platform/pc32/i386/identcpu.c +++ b/sys/platform/pc32/i386/identcpu.c @@ -569,6 +569,9 @@ printcpuinfo(void) case 0x6d0: strcpy(cpu_model, "VIA C7 Esther"); break; + case 0x6f0: + strcpy(cpu_model, "VIA Nano"); + break; default: strcpy(cpu_model, "VIA/IDT Unknown"); } @@ -719,6 +722,8 @@ printcpuinfo(void) "\040" ); } + if (strcmp(cpu_vendor, "CentaurHauls") == 0) + print_via_padlock_info(); /* * If this CPU supports hyperthreading then mention @@ -741,9 +746,6 @@ printcpuinfo(void) kprintf("\n CPU cache: write-through mode"); #endif } - if (strcmp(cpu_vendor, "CentaurHauls") == 0) - print_via_padlock_info(); - /* Avoid ugly blank lines: only print newline when we have to. */ if (*cpu_vendor || cpu_id) kprintf("\n"); @@ -1439,6 +1441,7 @@ print_via_padlock_info(void) return; case 0x6a0: case 0x6d0: + case 0x6f0: break; default: return; -- 2.11.4.GIT