diff options
Diffstat (limited to 'kernel/main.dats')
-rw-r--r-- | kernel/main.dats | 21 |
1 files changed, 19 insertions, 2 deletions
diff --git a/kernel/main.dats b/kernel/main.dats index 0a325ff..26db859 100644 --- a/kernel/main.dats +++ b/kernel/main.dats @@ -1,6 +1,23 @@ #include "kernel/kernel_prelude.hats" +staload "kernel/interrupts/idt.sats" + +%{^ + void breakpoint(){ + __asm__("int3"); + } +%} + +extern fun breakpoint() :void = "mac#" + implement main0 () = ( - println!("Hello World"); - println!("Hello World"); + println!("Start"); + + // Initialize interrupt table + idt_init(); + + // Throws breakpoint exception + breakpoint(); + + println!("End"); ) |