Virtual memory & paging
[lunaix-os.git] / lunaix-os / includes / arch / x86 / idt.h
diff --git a/lunaix-os/includes/arch/x86/idt.h b/lunaix-os/includes/arch/x86/idt.h
new file mode 100644 (file)
index 0000000..af0ae7d
--- /dev/null
@@ -0,0 +1,7 @@
+#ifndef __LUNAIX_IDT_H
+#define __LUNAIX_IDT_H 1
+#define IDT_ATTR(dpl)                   ((0x70 << 5) | (dpl & 3) << 13 | 1 << 15)
+
+void
+_init_idt();
+#endif
\ No newline at end of file