From owner-freebsd-current Wed Aug 18 19:52:29 1999 Delivered-To: freebsd-current@freebsd.org Received: from eclogite.eps.nagoya-u.ac.jp (eclogite.eps.nagoya-u.ac.jp [133.6.124.145]) by hub.freebsd.org (Postfix) with ESMTP id 59DEE14D1B for ; Wed, 18 Aug 1999 19:52:24 -0700 (PDT) (envelope-from kato@ganko.eps.nagoya-u.ac.jp) Received: from localhost (gneiss.eps.nagoya-u.ac.jp [133.6.124.148]) by eclogite.eps.nagoya-u.ac.jp (8.9.3/3.7W) with ESMTP id LAA20736 for ; Thu, 19 Aug 1999 11:51:07 +0900 (JST) To: current@FreeBSD.org Subject: Re: Cyrix/IBM CPU detection From: KATO Takenori In-Reply-To: Your message of "Mon, 16 Aug 1999 18:15:08 +0900" <19990816181508C.kato@gneiss.eps.nagoya-u.ac.jp> References: <19990816181508C.kato@gneiss.eps.nagoya-u.ac.jp> X-Mailer: Mew version 1.93 on Emacs 19.34 / Mule 2.3 (SUETSUMUHANA) X-PGP-Fingerprint: 03 72 85 36 62 46 23 03 52 B1 10 22 44 10 0D 9E Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-Id: <19990819115037Q.kato@gneiss.eps.nagoya-u.ac.jp> Date: Thu, 19 Aug 1999 11:50:37 +0900 X-Dispatcher: imput version 980905(IM100) Lines: 41 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I revised BlueLightning CPU patch because I found that there are BlueLightning CPUs which do not change undefined flag by dividing 5 by 2 like Intel CPUs. After my obtaining test reports on *both* IBM BlueLightning CPUs and old Intel 486 CPUs that do not support cpuid instruction, I'll commit into current. If the patch has side effect on non-IBM CPU, of course, I'll discard it. ---------- BEGIN ---------- *** sys/i386/i386/identcpu.c.ORIG Wed Aug 18 21:55:33 1999 --- sys/i386/i386/identcpu.c Thu Aug 19 11:40:03 1999 *************** *** 852,857 **** --- 852,871 ---- break; } } + } else if (cpu == CPU_486 && *cpu_vendor == '\0') { + /* + * There are BlueLightning CPUs that do not change + * undefined flags by dividing 5 by 2. In this case, + * the CPU identification routine in locore.s leaves + * cpu_vendor null string and puts CPU_486 into the + * cpu. + */ + isblue = identblue(); + if (isblue == IDENTBLUE_IBMCPU) { + strcpy(cpu_vendor, "IBM"); + cpu = CPU_BLUE; + return; + } } } ---------- END ---------- -----------------------------------------------+--------------------------+ KATO Takenori | FreeBSD | Dept. Earth Planet. Sci, Nagoya Univ. | The power to serve! | Nagoya, 464-8602, Japan | http://www.FreeBSD.org/ | ++++ FreeBSD(98) 3.2: Rev. 01 available! |http://www.jp.FreeBSD.org/| ++++ FreeBSD(98) 2.2.8: Rev. 02 available! +==========================+ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message