From f44cb1fd2e58f0233dccdf8a1fac84e310857e7e Mon Sep 17 00:00:00 2001 From: Xander Date: Tue, 11 Jul 2023 17:30:25 +0200 Subject: Implemented default interrupts --- kernel/interrupts/idt.sats | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'kernel/interrupts/idt.sats') 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 -- cgit v1.2.3