summaryrefslogtreecommitdiff
path: root/kernel/gdt.h
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/gdt.h')
-rw-r--r--kernel/gdt.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/kernel/gdt.h b/kernel/gdt.h
index 9ae366c..9e5a6a5 100644
--- a/kernel/gdt.h
+++ b/kernel/gdt.h
@@ -1,3 +1,15 @@
#pragma once
+enum {
+ SEG_null,
+ // order dictated by SYSENTER
+ SEG_r0code,
+ SEG_r0data,
+ SEG_r3code,
+ SEG_r3data,
+ SEG_TSS,
+
+ SEG_end
+};
+
void gdt_init();