aboutsummaryrefslogtreecommitdiff
path: root/i686/idt.h
diff options
context:
space:
mode:
Diffstat (limited to 'i686/idt.h')
-rw-r--r--i686/idt.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/i686/idt.h b/i686/idt.h
new file mode 100644
index 0000000..22dc6de
--- /dev/null
+++ b/i686/idt.h
@@ -0,0 +1,18 @@
+#pragma once
+
+#include <stdint.h>
+
+struct interrupt_frame {
+ uint32_t ip;
+ uint32_t cs;
+ uint32_t flags;
+ uint32_t sp;
+ uint32_t ss;
+};
+
+void abort_handler(struct interrupt_frame *frame);
+void interrupt_handler(struct interrupt_frame *frame);
+void interrupt_handler_e(struct interrupt_frame *frame, uint32_t error);
+void syscall_handler(struct interrupt_frame *frame);
+
+void idt_install();