gdt
[3sys] / sys1 / kern / src / desc.h
diff --git a/sys1/kern/src/desc.h b/sys1/kern/src/desc.h
new file mode 100644 (file)
index 0000000..9d9f700
--- /dev/null
@@ -0,0 +1,14 @@
+#ifndef DESC_H_
+#define DESC_H_
+
+#include <stdint.h>
+
+struct desc {
+       uint32_t d[2];
+};
+
+enum { SEG_NULL, SEG_CODE, SEG_DATA, SEG_TSS };
+
+void desc_seg(struct desc *desc, int type, uint32_t base, uint32_t limit, int dpl);
+
+#endif /* DESC_H_ */