Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 25 Dec 1995 06:39:21 -0800
From:      David Greenman <davidg@Root.COM>
To:        KATO Takenori <kato@eclogite.eps.nagoya-u.ac.jp>
Cc:        current@freebsd.org
Subject:   Re: Cyrix 5x86 is not identified 
Message-ID:  <199512251439.GAA03368@corbin.Root.COM>
In-Reply-To: Your message of "Mon, 25 Dec 95 22:52:42 %2B0900." <199512251352.WAA00273@marble.eps.nagoya-u.ac.jp> 

next in thread | previous in thread | raw e-mail | index | archive | help
>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

   The problem was a few dozen lines up. I forgot to change two forward lables
when I renumbered what was '2' to '3'.
   The correct fix is attached.

-DG

Index: locore.s
===================================================================
RCS file: /home/ncvs/src/sys/i386/i386/locore.s,v
retrieving revision 1.57
diff -c -r1.57 locore.s
*** locore.s	1995/12/24 08:10:39	1.57
--- locore.s	1995/12/25 14:38:35
***************
*** 366,372 ****
  	andw	$0x08d5,%cx
  	cmpw	%ax,%cx
  
! 	jnz	2f			# if flags changed, Intel chip
  
  	movl	$CPU_486DLC,_cpu-KERNBASE # set CPU value for Cyrix
  	movl	$0x69727943,_cpu_vendor-KERNBASE	# store vendor string
--- 366,372 ----
  	andw	$0x08d5,%cx
  	cmpw	%ax,%cx
  
! 	jnz	3f			# if flags changed, Intel chip
  
  	movl	$CPU_486DLC,_cpu-KERNBASE # set CPU value for Cyrix
  	movl	$0x69727943,_cpu_vendor-KERNBASE	# store vendor string
***************
*** 428,434 ****
  	movl	%eax,%cr0
  	invd
  #endif /* CYRIX_CACHE_WORKS */
! 	jmp	2f
  
  1:	/* Use the `cpuid' instruction. */
  	xorl	%eax,%eax
--- 428,434 ----
  	movl	%eax,%cr0
  	invd
  #endif /* CYRIX_CACHE_WORKS */
! 	jmp	3f
  
  1:	/* Use the `cpuid' instruction. */
  	xorl	%eax,%eax



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