aboutsummaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorKATO Takenori <kato@FreeBSD.org>1999-02-06 07:31:33 +0000
committerKATO Takenori <kato@FreeBSD.org>1999-02-06 07:31:33 +0000
commita83a61b0f795ba39a8815b3d111b043b84d4f124 (patch)
treed3b4b8b7f52fce08974c2e417796f7f6846b0873 /sys
parente438e4e9af560005a425bdc191bdf08f8d320a8d (diff)
Notes
Diffstat (limited to 'sys')
-rw-r--r--sys/i386/i386/locore.s27
-rw-r--r--sys/i386/include/asnames.h3
2 files changed, 16 insertions, 14 deletions
diff --git a/sys/i386/i386/locore.s b/sys/i386/i386/locore.s
index 42955056d423..55ab5b8346d9 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.117 1998/11/03 21:07:50 msmith Exp $
+ * $Id: locore.s,v 1.118 1998/12/08 10:22:31 kato Exp $
*
* originally from: locore.s, by William F. Jolitz
*
@@ -146,6 +146,11 @@ _vm86pa: .long 0 /* phys addr of vm86 region */
_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
diff --git a/sys/i386/include/asnames.h b/sys/i386/include/asnames.h
index 4e04be219361..90df00774443 100644
--- a/sys/i386/include/asnames.h
+++ b/sys/i386/include/asnames.h
@@ -23,7 +23,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: asnames.h,v 1.25 1998/09/19 17:16:48 jdp Exp $
+ * $Id: asnames.h,v 1.26 1998/10/03 17:23:25 jdp Exp $
*/
#ifndef _MACHINE_ASNAMES_H_
@@ -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