projects
/
ld45_start_nothing
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
input sortof-works
[ld45_start_nothing]
/
src
/
boot
/
boot2.asm
diff --git
a/src/boot/boot2.asm
b/src/boot/boot2.asm
index
0fac8fe
..
df2653c
100644
(file)
--- a/
src/boot/boot2.asm
+++ b/
src/boot/boot2.asm
@@
-63,7
+63,7
@@
gdt_lim: dw 23
gdt_base: dd gdt
align 4
gdt_base: dd gdt
align 4
-idt_lim: dw 111
+idt_lim: dw 2047
idt_base: dd idt
align 8
idt_base: dd idt
align 8
@@
-77,6
+77,7
@@
gdt: ; 0: null segment
dd 0000ffffh
dd 00cf9200h
dd 0000ffffh
dd 00cf9200h
+ global idt
align 8
idt: times 104 db 0
; trap gate 13: general protection fault
align 8
idt: times 104 db 0
; trap gate 13: general protection fault
@@
-84,6
+85,7
@@
idt: times 104 db 0
dw 8
dw 8f00h ; type: trap, present, default
dw 0
dw 8
dw 8f00h ; type: trap, present, default
dw 0
+ times 1944 db 0 ; enough space for 256 gates
gpf_msg: db "GP fault "
gpf_msg: db "GP fault "