aboutsummaryrefslogtreecommitdiff
path: root/src/boot.asm
diff options
context:
space:
mode:
Diffstat (limited to 'src/boot.asm')
-rw-r--r--src/boot.asm9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/boot.asm b/src/boot.asm
index fda8b0c..b45d64b 100644
--- a/src/boot.asm
+++ b/src/boot.asm
@@ -34,6 +34,7 @@ stublet:
call kernel_main
jmp $
+; GDT flush function
global gdt_flush
extern gp
gdt_flush:
@@ -48,8 +49,14 @@ gdt_flush:
flush2:
ret ; Returns to C code
-; TODO: ISR
+; IDT loader
+global idt_load
+extern idtp
+idt_load:
+ lidt [idtp]
+ ret
+; Store the stack
SECTION .bss
resb 8192 ; Reserve 8KiB
_sys_stack: \ No newline at end of file