diff options
author | Michael Shalayeff <mickey@cvs.openbsd.org> | 1997-04-04 04:47:48 +0000 |
---|---|---|
committer | Michael Shalayeff <mickey@cvs.openbsd.org> | 1997-04-04 04:47:48 +0000 |
commit | ea0c1a875ff2a5356db9fe00060f2ddd2f1a964c (patch) | |
tree | 84a5b17b7ed1b6041dc4f1c06a755a02b0213f4e /sys/arch/i386/stand/boot/srt0.S | |
parent | 4bb1ee5415bfd5219eaf941d40b3eacc24630896 (diff) |
dump regs w/ NMI (int 2)
more debugging is on the way
Diffstat (limited to 'sys/arch/i386/stand/boot/srt0.S')
-rw-r--r-- | sys/arch/i386/stand/boot/srt0.S | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/sys/arch/i386/stand/boot/srt0.S b/sys/arch/i386/stand/boot/srt0.S index 14fff7d82e5..a947e076954 100644 --- a/sys/arch/i386/stand/boot/srt0.S +++ b/sys/arch/i386/stand/boot/srt0.S @@ -1,4 +1,4 @@ -/* $OpenBSD: srt0.S,v 1.2 1997/03/31 23:06:23 mickey Exp $ */ +/* $OpenBSD: srt0.S,v 1.3 1997/04/04 04:47:46 mickey Exp $ */ /* $NetBSD: srt0.c,v 1.3 1994/10/27 04:21:59 cgd Exp $ */ /*- @@ -61,7 +61,7 @@ start_boot: movl $0xb80a0, %ebx movl $0x07420742, (%ebx) #endif - + /* reload new gdt */ lgdt _Gdtr ljmp $8, $1f 1: @@ -71,6 +71,10 @@ start_boot: movl %ax, %es movl %ax, %fs movl %ax, %gs +#ifndef NO_IDTR + /* load idtr for debugger */ + lidt _Idtr_prot +#endif #ifdef DEBUG movl $0xb80a4, %ebx @@ -110,8 +114,9 @@ __rtt: .data .align 3 -gdt: /* 0x00 : null */ - .long 0, 0 +gdt: +null: /* 0x00 : null */ + .space 8 /* 0x08 : flat code */ .word 0xFFFF # lolimit .word 0 # lobase @@ -133,7 +138,7 @@ gdt: /* 0x00 : null */ .byte SDT_MEMERAC | 0 | 0x80 # RWXAC, dpl = 0, present .byte 0xf | 0 | 0 | 0 # hilimit, xx, 16bit, byte granularity .byte 0 # hibase -_Gdtr: .word . - gdt +_Gdtr: .word . - gdt - 1 .long gdt .word 0 |