Date: Thu, 19 Aug 1999 11:50:37 +0900 From: KATO Takenori <kato@ganko.eps.nagoya-u.ac.jp> To: current@FreeBSD.org Subject: Re: Cyrix/IBM CPU detection Message-ID: <19990819115037Q.kato@gneiss.eps.nagoya-u.ac.jp> In-Reply-To: Your message of "Mon, 16 Aug 1999 18:15:08 %2B0900" <19990816181508C.kato@gneiss.eps.nagoya-u.ac.jp> References: <19990816181508C.kato@gneiss.eps.nagoya-u.ac.jp>
next in thread | previous in thread | raw e-mail | index | archive | help
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 <kato@ganko.eps.nagoya-u.ac.jp> | 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19990819115037Q.kato>