summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorkato <kato@FreeBSD.org>1999-01-31 02:04:43 +0000
committerkato <kato@FreeBSD.org>1999-01-31 02:04:43 +0000
commit39a37d18fc8862a7d0e3c4f12ce43df16896306f (patch)
tree3a455caff01851a8639ef412dacd38864c9ed882 /sys
parent9f6bfe3b2fcfd6cf390e61b35d0b1e95593d17b7 (diff)
downloadFreeBSD-src-39a37d18fc8862a7d0e3c4f12ce43df16896306f.zip
FreeBSD-src-39a37d18fc8862a7d0e3c4f12ce43df16896306f.tar.gz
Use offset to _pc98_system_parameter instead of immediate value which
assumes KERNBASE=0x100000.
Diffstat (limited to 'sys')
-rw-r--r--sys/amd64/amd64/locore.S10
-rw-r--r--sys/amd64/amd64/locore.s10
-rw-r--r--sys/i386/i386/locore.s10
3 files changed, 18 insertions, 12 deletions
diff --git a/sys/amd64/amd64/locore.S b/sys/amd64/amd64/locore.S
index e6c607c..981418b 100644
--- a/sys/amd64/amd64/locore.S
+++ b/sys/amd64/amd64/locore.S
@@ -34,7 +34,7 @@
* SUCH DAMAGE.
*
* from: @(#)locore.s 7.3 (Berkeley) 5/13/91
- * $Id: locore.s,v 1.118 1998/12/08 10:22:31 kato Exp $
+ * $Id: locore.s,v 1.119 1999/01/30 15:38:47 kato Exp $
*
* originally from: locore.s, by William F. Jolitz
*
@@ -260,9 +260,11 @@ NON_GPROF_ENTRY(btext)
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 */
@@ -277,7 +279,7 @@ NON_GPROF_ENTRY(btext)
loop 1b
2: subl $0x100000,%eax
shrl $17,%eax
- movb %al,0x100401
+ movb %al,R(_pc98_system_parameter)+1
3:
#endif
diff --git a/sys/amd64/amd64/locore.s b/sys/amd64/amd64/locore.s
index e6c607c..981418b 100644
--- a/sys/amd64/amd64/locore.s
+++ b/sys/amd64/amd64/locore.s
@@ -34,7 +34,7 @@
* SUCH DAMAGE.
*
* from: @(#)locore.s 7.3 (Berkeley) 5/13/91
- * $Id: locore.s,v 1.118 1998/12/08 10:22:31 kato Exp $
+ * $Id: locore.s,v 1.119 1999/01/30 15:38:47 kato Exp $
*
* originally from: locore.s, by William F. Jolitz
*
@@ -260,9 +260,11 @@ NON_GPROF_ENTRY(btext)
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 */
@@ -277,7 +279,7 @@ NON_GPROF_ENTRY(btext)
loop 1b
2: subl $0x100000,%eax
shrl $17,%eax
- movb %al,0x100401
+ movb %al,R(_pc98_system_parameter)+1
3:
#endif
diff --git a/sys/i386/i386/locore.s b/sys/i386/i386/locore.s
index e6c607c..981418b 100644
--- a/sys/i386/i386/locore.s
+++ b/sys/i386/i386/locore.s
@@ -34,7 +34,7 @@
* SUCH DAMAGE.
*
* from: @(#)locore.s 7.3 (Berkeley) 5/13/91
- * $Id: locore.s,v 1.118 1998/12/08 10:22:31 kato Exp $
+ * $Id: locore.s,v 1.119 1999/01/30 15:38:47 kato Exp $
*
* originally from: locore.s, by William F. Jolitz
*
@@ -260,9 +260,11 @@ NON_GPROF_ENTRY(btext)
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 */
@@ -277,7 +279,7 @@ NON_GPROF_ENTRY(btext)
loop 1b
2: subl $0x100000,%eax
shrl $17,%eax
- movb %al,0x100401
+ movb %al,R(_pc98_system_parameter)+1
3:
#endif
OpenPOWER on IntegriCloud