diff options
Diffstat (limited to 'kernel/interrupts/idt.sats')
-rw-r--r-- | kernel/interrupts/idt.sats | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/kernel/interrupts/idt.sats b/kernel/interrupts/idt.sats index b8ee06d..46f56d9 100644 --- a/kernel/interrupts/idt.sats +++ b/kernel/interrupts/idt.sats @@ -30,4 +30,14 @@ typedef int_frame = @{ ss = [l : agz] ptr l // stack segment } +// ------- Default handlers (exceptions and interrupts) + +fun default_exception_handler(frame: &int_frame) : void = "mac#" +fun default_exception_handler_e(frame: &int_frame, error_code : uint64) : void = "mac#" + +fun default_interrupt_handler(frame: &int_frame) : void = "mac#" +fun default_interrupt_handler_e(frame: &int_frame, error_code : uint64) : void = "mac#" + +// ------- + fun idt_init() : void |