aboutsummaryrefslogtreecommitdiff
path: root/kernel/interrupts/idt.sats
diff options
context:
space:
mode:
authorXander <xander@biltopia.org>2023-07-11 17:30:25 +0200
committerXander <xander@biltopia.org>2023-07-11 17:30:25 +0200
commitf44cb1fd2e58f0233dccdf8a1fac84e310857e7e (patch)
treeb4847c063d2a8d5c85d62dafeb4fe9c110ab8b4c /kernel/interrupts/idt.sats
parentd7239440b314c3cfedc6fa840646698d4b30ee88 (diff)
downloadats-os-f44cb1fd2e58f0233dccdf8a1fac84e310857e7e.tar.xz
ats-os-f44cb1fd2e58f0233dccdf8a1fac84e310857e7e.zip
Implemented default interrupts
Diffstat (limited to 'kernel/interrupts/idt.sats')
-rw-r--r--kernel/interrupts/idt.sats10
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