Nucleus
Barry Global Descriptor Tables b9a1b73 (3 years, 3 months ago)
diff --git a/kernel/desc.h b/kernel/desc.h
new file mode 100644
index 0000000..616deab
--- /dev/null
+++ b/kernel/desc.h
@@ -0,0 +1,17 @@
+#ifndef KERNEL_DESC_H
+#define KERNEL_DESC_H
+
+#include <stdint.h>
+
+/* Structure for a Descriptor Record */
+struct DescRecord {
+ uint16_t limit;
+ uintptr_t base;
+} __attribute__((packed));
+
+void init_idt(void);
+void init_gdt(void);
+void cpu_load_idt(void);
+void cpu_load_gdt(void);
+
+#endif