--- /dev/null
+#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_ */