i386/55581: identcpu.c patch for VIA C3

KIMURA Yasuhiro yasu at utahime.org
Thu Aug 14 07:10:18 PDT 2003


>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 at 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:


More information about the freebsd-i386 mailing list