From owner-newconfig-jp@jp.freebsd.org  Tue Feb 23 23:02:23 1999
Received: (from daemon@localhost)
	by jaz.jp.freebsd.org (8.9.2+3.1W/8.7.3) id XAA11670;
	Tue, 23 Feb 1999 23:02:23 +0900 (JST)
	(envelope-from owner-newconfig-jp@jp.FreeBSD.org)
Received: from wyvern.cc.kogakuin.ac.jp (wyvern.cc.kogakuin.ac.jp [133.80.184.10])
	by jaz.jp.freebsd.org (8.9.2+3.1W/8.7.3) with ESMTP id XAA11663
	for <newconfig-jp@jp.freebsd.org>; Tue, 23 Feb 1999 23:02:22 +0900 (JST)
	(envelope-from nyan@wyvern.cc.kogakuin.ac.jp)
Received: from localhost (localhost [127.0.0.1])
	by wyvern.cc.kogakuin.ac.jp (8.9.2+3.1W/3.7W) with ESMTP id WAA27305
	for <newconfig-jp@jp.freebsd.org>; Tue, 23 Feb 1999 22:33:09 +0900 (JST)
To: newconfig-jp@jp.freebsd.org
In-Reply-To: Your message of "Tue, 23 Feb 1999 13:42:09 +0900 (JST)"
	<19990223134209Y.nyan@wyvern.cc.kogakuin.ac.jp>
References: <19990223134209Y.nyan@wyvern.cc.kogakuin.ac.jp>
X-Mailer: Mew version 1.93 on Emacs 19.34 / Mule 2.3 (SUETSUMUHANA)
Mime-Version: 1.0
Content-Type: Multipart/Mixed;
	boundary="--Next_Part(Tue_Feb_23_22:26:53_1999_809)--"
Content-Transfer-Encoding: 7bit
Message-Id: <19990223223309B.nyan@wyvern.cc.kogakuin.ac.jp>
Date: Tue, 23 Feb 1999 22:33:09 +0900 (JST)
From: Takahashi Yoshihiro <nyan@wyvern.cc.kogakuin.ac.jp>
X-Dispatcher: imput version 980905(IM100)
Lines: 117
Reply-To: newconfig-jp@jp.freebsd.org
Precedence: list
X-Distribute: distribute version 2.1 (Alpha) patchlevel 24e+981115
X-Sequence: newconfig-jp 1259
Subject: [newconfig-jp 1259] Re: RELENG_3_BP patch (Re: What to DO)
Errors-To: owner-newconfig-jp@jp.freebsd.org
Sender: owner-newconfig-jp@jp.freebsd.org
X-Originator: nyan@wyvern.cc.kogakuin.ac.jp

----Next_Part(Tue_Feb_23_22:26:53_1999_809)--
Content-Type: Text/Plain; charset=iso-2022-jp
Content-Transfer-Encoding: 7bit

$B9b66(B@$B9)3X1!Bg$G$9(B

In article <19990223134209Y.nyan@wyvern.cc.kogakuin.ac.jp>
Takahashi Yoshihiro <nyan@wyvern.cc.kogakuin.ac.jp> writes:

> In article <19990223133548V.kanaoka@ann.hi-ho.ne.jp>
> Masanori Kanaoka <kanaoka@ann.hi-ho.ne.jp> writes:
> 
> > $B$3$l$r;n$7$?$N$G$9$,!"(B i386 $B$K$F5/F0$7$^$7$?!#(B
> 
> $B$H$$$&$3$H$O!"(B98 $B$@$1$NLdBj$_$?$$$G$9$M!#(B

$B860x$,$o$+$j$^$7$?!#(B
kernel $B$N(B format $B$,(B ELF $B$K$J$C$?$N$G$9$,!"(BRELENG_3_BP $B$N;~E@$G$O(B ELF 
$B7A<0$N(B kernel $B$KBP1~$7$F$$$J$$$?$a$G$9!#(B

$BE:IU$9$k(B i386/include/asnames.h $B$H(B i386/i386/locore.s $B$N%Q%C%A$rEv$F$l(B
$B$P5/F0$9$k$h$&$K$J$j$^$7$?!#(B

---
$B9)3X1!Bg3XBg3X1!(B $B>pJs3X@l96(B $B7W;;5!9=@.8&5f<<(B
$B9b66(B $B2BBg(B (Takahashi Yoshihiro) E-mail: nyan@wyvern.cc.kogakuin.ac.jp

----Next_Part(Tue_Feb_23_22:26:53_1999_809)--
Content-Type: Text/Plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename=asnames.h.diff

===================================================================
RCS file: /home/ncvs/src/sys/i386/include/asnames.h,v
retrieving revision 1.26
retrieving revision 1.26.2.1
diff -p -u -r1.26 -r1.26.2.1
--- src/sys/i386/include/asnames.h	1998/10/03 17:23:25	1.26
+++ /home/ncvs/src/sys/i386/include/asnames.h	1999/02/06 07:31:33	1.26.2.1
@@ -297,6 +297,7 @@
 #define _other_cpus			other_cpus
 #define _ovbcopy_vector			ovbcopy_vector
 #define _panic				panic
+#define	_pc98_system_parameter	pc98_system_parameter
 #define _poly_div16			poly_div16
 #define _poly_div2			poly_div2
 #define _poly_div4			poly_div4

----Next_Part(Tue_Feb_23_22:26:53_1999_809)--
Content-Type: Text/Plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename=locore.s.diff

===================================================================
RCS file: /home/ncvs/src/sys/i386/i386/locore.s,v
retrieving revision 1.118
retrieving revision 1.118.2.1
diff -p -u -r1.118 -r1.118.2.1
--- src/sys/i386/i386/locore.s	1998/12/08 10:22:31	1.118
+++ /home/ncvs/src/sys/i386/i386/locore.s	1999/02/06 07:31:33	1.118.2.1
@@ -146,6 +146,11 @@ _vm86pa:	.long	0			/* phys addr of vm86 
 _bdb_exists:	.long	0
 #endif
 
+#ifdef PC98
+	.globl	_pc98_system_parameter
+_pc98_system_parameter:
+	.space	0x240
+#endif
 
 /**********************************************************************
  *
@@ -205,16 +210,10 @@ _bdb_exists:	.long	0
 NON_GPROF_ENTRY(btext)
 
 #ifdef PC98
-	jmp	1f
-	.globl	CNAME(pc98_system_parameter)
-	.org	0x400
-CNAME(pc98_system_parameter):
-	.space	0x240		/* BIOS parameter block */
-1:
 	/* save SYSTEM PARAMETER for resume (NS/T or other) */
-	movl	$0xa1000,%esi
-	movl	$0x100000,%edi
-	movl	$0x0630,%ecx
+	movl	$0xa1400,%esi
+	movl	$R(_pc98_system_parameter),%edi
+	movl	$0x0240,%ecx
 	cld
 	rep
 	movsb
@@ -261,9 +260,11 @@ CNAME(pc98_system_parameter):
 	movl	$R(HIDENAME(tmpstk)),%esp
 
 #ifdef PC98
-	testb	$0x02,0x100620		/* pc98_machine_type & M_EPSON_PC98 */
+	/* pc98_machine_type & M_EPSON_PC98 */
+	testb	$0x02,R(_pc98_system_parameter)+220
 	jz	3f
-	cmpb	$0x0b,0x100624		/* epson_machine_id <= 0x0b */
+	/* epson_machine_id <= 0x0b */
+	cmpb	$0x0b,R(_pc98_system_parameter)+224
 	ja	3f
 
 	/* count up memory */
@@ -278,7 +279,7 @@ CNAME(pc98_system_parameter):
 	loop	1b
 2:	subl	$0x100000,%eax
 	shrl	$17,%eax
-	movb	%al,0x100401
+	movb	%al,R(_pc98_system_parameter)+1
 3:
 #endif
 

----Next_Part(Tue_Feb_23_22:26:53_1999_809)----
