refactor: decouple i386 specific instruction invocation
[lunaix-os.git] / lunaix-os / includes / arch / i386 / idt.h
diff --git a/lunaix-os/includes/arch/i386/idt.h b/lunaix-os/includes/arch/i386/idt.h
new file mode 100644 (file)
index 0000000..0d515c2
--- /dev/null
@@ -0,0 +1,10 @@
+#ifndef __LUNAIX_IDT_H
+#define __LUNAIX_IDT_H
+#define IDT_TRAP 0x78
+#define IDT_INTERRUPT 0x70
+#define IDT_ATTR(dpl, type) (((type) << 5) | ((dpl & 3) << 13) | (1 << 15))
+
+void
+_init_idt();
+
+#endif /* __LUNAIX_IDT_H */
\ No newline at end of file