Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 25 Dec 1995 22:52:42 +0900
From:      KATO Takenori <kato@eclogite.eps.nagoya-u.ac.jp>
To:        current@freebsd.org
Subject:   Cyrix 5x86 is not identified
Message-ID:  <199512251352.WAA00273@marble.eps.nagoya-u.ac.jp>

next in thread | raw e-mail | index | archive | help
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 <kato@eclogite.eps.nagoya-u.ac.jp>
Dept. Earth Planet. Sci., Nagoya Univ.,  Nagoya 464-01
Voice: +81-52-789-2529   Fax: +81-52-789-3033



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