diff options
author | Michael Shalayeff <mickey@cvs.openbsd.org> | 1997-05-29 05:32:08 +0000 |
---|---|---|
committer | Michael Shalayeff <mickey@cvs.openbsd.org> | 1997-05-29 05:32:08 +0000 |
commit | 5d5a1341b34e8e53abf3690a8a50d6e4a95312df (patch) | |
tree | ac38d832d89a29f85f617da425f3aa779ce45a33 /sys/arch/i386/stand/boot | |
parent | e014d55ae0d8bb00a4caf40208563605e05bebd2 (diff) |
better style, move pmm init code completely into gidt.S
Diffstat (limited to 'sys/arch/i386/stand/boot')
-rw-r--r-- | sys/arch/i386/stand/boot/srt0.S | 28 |
1 files changed, 9 insertions, 19 deletions
diff --git a/sys/arch/i386/stand/boot/srt0.S b/sys/arch/i386/stand/boot/srt0.S index 531bcaa2557..db739633244 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.7 1997/04/18 01:30:03 mickey Exp $ */ +/* $OpenBSD: srt0.S,v 1.8 1997/05/29 05:32:06 mickey Exp $ */ /* $NetBSD: srt0.c,v 1.3 1994/10/27 04:21:59 cgd Exp $ */ /*- @@ -49,10 +49,6 @@ .globl _edata .globl _boot .globl __rtt - .globl _Gdtr - .globl _Idtr_prot - .globl _Idtr_reset - .globl idt_init .text .globl start_boot @@ -61,20 +57,7 @@ start_boot: movl $0xb80a0, %ebx movl $0x07420742, (%ebx) #endif - /* reload new gdt */ - lgdt _Gdtr - ljmp $8, $1f -1: - movw $0x10, %ax - movl %ax, %ds - movl %ax, %ss - movl %ax, %es - movl %ax, %fs - movl %ax, %gs - /* init idt */ - call idt_init - /* load idtr for interrupts */ - lidt _Idtr_prot + call pmm_init /* init protected moded memory management */ #ifdef DEBUG movl $0xb80a4, %ebx @@ -99,6 +82,13 @@ start_boot: call _boot + .data + .align 3 +_Idtr_reset: + .word 0 + .long 0 + + .text __rtt: #ifdef DEBUG movl $0xb8000, %ebx |