summaryrefslogtreecommitdiff
path: root/src/kernel/isr.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/kernel/isr.h')
-rw-r--r--src/kernel/isr.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/kernel/isr.h b/src/kernel/isr.h
new file mode 100644
index 0000000..150fc46
--- /dev/null
+++ b/src/kernel/isr.h
@@ -0,0 +1,15 @@
+#pragma once
+#include <stdbool.h>
+
+struct interrupt_frame;
+
+extern bool isr_test_interrupt_called; // used in the self-test in idt.c
+
+__attribute__((interrupt))
+void isr_double_fault(struct interrupt_frame *frame);
+
+__attribute__((interrupt))
+void isr_general_protection_fault(struct interrupt_frame *frame);
+
+__attribute__((interrupt))
+void isr_test_interrupt(struct interrupt_frame *frame);