From owner-freebsd-current Mon Dec 25 05:52:50 1995 Return-Path: owner-current Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id FAA17250 for current-outgoing; Mon, 25 Dec 1995 05:52:50 -0800 (PST) Received: from marble.eps.nagoya-u.ac.jp (marble.eps.nagoya-u.ac.jp [133.6.57.68]) by freefall.freebsd.org (8.7.3/8.7.3) with ESMTP id FAA17245 for ; Mon, 25 Dec 1995 05:52:48 -0800 (PST) Received: from marble.eps.nagoya-u.ac.jp (localhost [127.0.0.1]) by marble.eps.nagoya-u.ac.jp (8.7.1+2.6Wbeta4/3.3W9) with ESMTP id WAA00273 for ; Mon, 25 Dec 1995 22:52:45 +0900 (JST) Message-Id: <199512251352.WAA00273@marble.eps.nagoya-u.ac.jp> To: current@freebsd.org Subject: Cyrix 5x86 is not identified X-Mailer: Mew beta version 0.96 on Emacs 19.28.1, Mule 2.3 Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Date: Mon, 25 Dec 1995 22:52:42 +0900 From: KATO Takenori Sender: owner-current@freebsd.org Precedence: bulk I have got new machdep.c (revision 1.164), and compiled new kernel. When I run this kernel on Cyrix 5x86 box, it is paniced by CPU: Pentium Proc (unknown-class CPU) CPU class not configured Before Pentium Pro support, 5x86 was identified with 486-class CPU, and it starts without problem (Cyrix 5x86 *IS NOT* Pentium compatible, but i486 compatible.) Now I have applied following quick hack to run -current: ---------- BEGIN ---------- *** locore.s.1.57 Mon Dec 25 22:41:10 1995 --- locore.s Mon Dec 25 22:41:48 1995 *************** *** 458,463 **** --- 458,466 ---- movl $CPU_586,_cpu-KERNBASE jmp 3f 2: + /* Cyrix 5x86 ? */ + cmpl $6,%eax + jb 3f /* Greater than Pentium...call it a Pentium Pro */ movl $CPU_686,_cpu-KERNBASE 3: ---------- END ---------- Comparison between revision 1.56 and 1.57, I can't find the reason why 5x86 is not identified. The reason seems to be gas problem which cannot produce correct code for 'jmp 3f' just after /* less than Pentium; must be 486 */ movl $CPU_486,_cpu-KERNBASE (Unfortunately, I don't know how to disassemble around here.) ---- KATO Takenori Dept. Earth Planet. Sci., Nagoya Univ., Nagoya 464-01 Voice: +81-52-789-2529 Fax: +81-52-789-3033