Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 4 Nov 1997 12:52:40 -0800 (PST)
From:      nsayer@quack.kfu.com
To:        FreeBSD-gnats-submit@FreeBSD.ORG
Subject:   kern/4936: Cyrix CPU detection
Message-ID:  <199711042052.MAA09690@zephyr.specialix.com>
Resent-Message-ID: <199711042100.NAA07261@hub.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         4936
>Category:       kern
>Synopsis:       Cyrix CPU detection
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Class:          support
>Submitter-Id:   current-users
>Arrival-Date:   Tue Nov  4 13:00:02 PST 1997
>Last-Modified:
>Originator:     Nick Sayer
>Organization:
Just me
>Release:        FreeBSD 2.2.2-RELEASE i386
>Environment:

Cyrix CPUs

>Description:

Direct from the Cyrix CPU detection web page, here is how you identify
recent Cyrix CPUs.

There is a method to my madness. The MediaGX chip has imbedded video
support. This support will likely require a new XFree86 server.
it would make life quite easy if the server could detect the presence
of MediaGX simply by doing a sysctl on hw.model.

>How-To-Repeat:

>Fix:

This code is untested.

--- identcpu.c.orig	Sun Feb  2 10:47:05 1997
+++ identcpu.c	Tue Nov  4 12:41:05 1997
@@ -135,6 +135,28 @@
 				break;
 			}
 		}
+	} else if (strcmp(cpu_vendor,"CyrixInstead") == 0) {
+		/*
+		 * Values taken from Cyrix CPU Detection guide
+		 * http://www.cyrix.com/process/support/detection.htm
+		 */
+		cpu_model[0] = '\0';
+		strcpy(cpu_model, "Cyrix ");
+		switch (cpu_id & 0xff0) {
+		case 0x520:
+			strcat(cpu_model, "6x86"); break;
+			break;
+		case 0x440:
+			strcat(cpu_model, "MediaGX"); break;
+			break;
+		case 0x600:
+			strcat(cpu_model, "6x86MX"); break;
+			break;
+		case 0x540:
+			strcat(cpu_model, "GXm"); break;
+			break;
+		}
+			
 	} else if (strcmp(cpu_vendor,"AuthenticAMD") == 0) {
 		/*
 		 * Values taken from AMD Processor Recognition
@@ -207,6 +229,7 @@
 		printf("  Id = 0x%lx",cpu_id);
 
 	if (strcmp(cpu_vendor, "GenuineIntel") == 0 ||
+	    strcmp(cpu_vendor, "CyrixInstead") == 0 ||
 	    strcmp(cpu_vendor, "AuthenticAMD") == 0) {
 		printf("  Stepping=%ld", cpu_id & 0xf);
 		if (cpu_high > 0) {
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199711042052.MAA09690>