Skip site navigation (1)Skip section navigation (2)
Date:      27 May 1996 07:49:44 +0900
From:      "Shigeru IKEDA" <si@injapan.net>
To:        "hackers@freebsd.org" <hackers@freebsd.org>
Cc:        "si@injapan.net" <si@injapan.net>
Subject:   Re: distinguish i386SX from i386DX [locore.s]
Message-ID:  <n1378936114.19259@Shigeru IKEDA>

next in thread | raw e-mail | index | archive | help
Hello,

I forgot to note the information source.
I got it from http://grafi.ii.pw.edu.pl/gbm/x86/sxdx.html. 

P.S.
    Anyone try this patch?

 ------ On 5/17/96 at 6:36:32 AM si@injapan.net wrote: ------ 

Hello hackers,

I added the code that distinguish i386SX from i386DX to 'locore.s' and
modify 'specialreg.h'.

I tested this code on my i386SX box only, because there are no i386DX box 
around me. If you have one, please test and tell me (or this ML) the 
result.

And I tested this code on FreeBSD-2.0.5R only.


My i386SX box's configuration:

Model:	Toshiba J3100SX001VW
CPUs:	i386SX(20MHz) + i387SX
Memory:	10M
HD:	200M
OS:	FreeBSD-2.0.5R

Following diffs are for FreeBSD-current.

*** 1.1	1996/05/17 05:23:21
--- locore.s	1996/05/17 05:48:51
***************
*** 547,552 ****
--- 547,568 ----
  	testl	%eax,%eax
  	jnz	1f
  	movl	$CPU_386,_cpu-KERNBASE
+ 
+ 	/* Try to toggle ET bit; cannot change on 386SX. */
+ 	movl	%cr0,%eax
+ 	movl	%eax,%ecx
+ 	orl	$CR0_ET,%eax
+ 	movl	%eax,%cr0
+ 
+ 	movl	%cr0,%eax
+ 	xorl	%ecx,%eax               
+ 	andl	$CR0_ET,%eax
+ 	movl	%ecx,%cr0
+         
+ 	testl	%eax,%eax
+ 	jnz	1f
+ 	movl	$CPU_386SX,_cpu-KERNBASE        
+ 
  	jmp	3f
  
  1:	/* Try to toggle identification flag; does not exist on early 486s. */


*** 1.1	1996/05/17 05:34:53
--- specialreg.h	1996/05/17 05:35:15
***************
*** 46,54 ****
  #define	CR0_EM	0x00000004	/* EMulate non-NPX coproc. (trap ESC only) */
  #endif
  #define	CR0_TS	0x00000008	/* Task Switched (if MP, trap ESC and WAIT) */
- #ifdef notused
  #define	CR0_ET	0x00000010	/* Extension Type (387 (if set) vs 287) */
- #endif
  #define	CR0_PG	0x80000000	/* PaGing enable */
  
  /*
--- 46,52 ----



--si
-.. . .--- ... ...-- --. ..- .---


------------------ RFC822 Header Follows ------------------
 Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.4]) 
by tao.gnj.or.jp (8.6.11/3.4Wbeta6-primary) with ESMTP id SAA00892 for 
<si@injapan.net>; Fri, 17 May 1996 18:01:10 +0900
 Received: from localhost (daemon@localhost)
           by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id XAA19521;
           Thu, 16 May 1996 23:37:08 -0700 (PDT)
 Received: (from root@localhost)
           by freefall.freebsd.org (8.7.3/8.7.3) id XAA19482
           for hackers-outgoing; Thu, 16 May 1996 23:36:45 -0700 (PDT)
 Received: from js3guj.injapan.net (pms16.inJapan.net [202.243.53.80])
           by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id XAA19469
           for <hackers@freebsd.org>; Thu, 16 May 1996 23:36:37 -0700 (PDT)
 Received: (from si@localhost) by js3guj.injapan.net (8.6.11/8.6.9) id 
PAA04414; Fri, 17 May 1996 15:36:32 +0900
 Date: Fri, 17 May 1996 15:36:32 +0900
 Message-Id: <199605170636.PAA04414@js3guj.injapan.net>
 X-UIDL: 832324704.007
 From: si@injapan.net
 To: hackers@freebsd.org
 Subject: distinguish i386SX from i386DX [locore.s]
 CC: si@injapan.net
 Sender: owner-hackers@freebsd.org
 X-Loop: FreeBSD.org
 Precedence: bulk
 Status: U
 


--si
-.. . .--- ... ...-- --. ..- .---
I've lost mail arrived around 5/22 22:00- 5/23 6:00 due to my mail gateway 
software. Please send again.


Sent with CTM PowerMail 1.0.6 <http://www.ctm.ch>;




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