Date: Thu, 14 Aug 2003 23:04:56 +0900 (JST) From: KIMURA Yasuhiro <yasu@utahime.org> To: FreeBSD-gnats-submit@FreeBSD.org Subject: i386/55581: identcpu.c patch for VIA C3 Message-ID: <20030814140456.55D1854AC@eastasia.home.utahime.org> Resent-Message-ID: <200308141410.h7EEAH7B015795@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 55581 >Category: i386 >Synopsis: identcpu.c patch for VIA C3 >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-i386 >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu Aug 14 07:10:16 PDT 2003 >Closed-Date: >Last-Modified: >Originator: KIMURA Yasuhiro >Release: FreeBSD 4.8-RELEASE-p3 i386 >Organization: >Environment: System: FreeBSD eastasia.home.utahime.org 4.8-RELEASE-p3 FreeBSD 4.8-RELEASE-p3 #2: Thu Aug 14 22:22:48 JST 2003 yasu@eastasia.home.utahime.org:/usr/obj/usr1/cvsup/releng_4_8/src/sys/EASTASIA i386 >Description: This patch make FreeBSD identify some newer version of VIA C3. It is for RELENG_4_8 source tree but should also be applicable to RELENG_4 and HEAD. The information about Samuel2, Ezra and Ezra-T is from official datasheet found at following URL, and that about Nehemiah is from output of dmesg generated by my Nehemiah box. http://www.via.com.tw/en/Products/C3/C3_EGBA_datasheet.zip >How-To-Repeat: >Fix: --- identcpu.VIA-C3.patch begins here --- --- /usr/src/sys/i386/i386/identcpu.c.dist Wed Apr 23 08:59:55 2003 +++ /usr/src/sys/i386/i386/identcpu.c Thu Aug 14 22:15:47 2003 @@ -523,7 +523,16 @@ strcpy(cpu_model, "IDT WinChip 2"); break; case 0x670: - strcpy(cpu_model, "VIA C3 Samuel 2"); + if (cpu_id & 0x8) + strcpy(cpu_model, "VIA C3 Ezra"); + else + strcpy(cpu_model, "VIA C3 Samuel 2"); + break; + case 0x680: + strcpy(cpu_model, "VIA C3 Ezra-T"); + break; + case 0x690: + strcpy(cpu_model, "VIA C3 Nehemiah"); break; default: strcpy(cpu_model, "VIA/IDT Unknown"); --- identcpu.VIA-C3.patch ends here --- >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030814140456.55D1854AC>