summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorIan Moffett <ian@osmora.org>2024-06-23 22:23:53 -0400
committerIan Moffett <ian@osmora.org>2024-06-23 22:23:53 -0400
commitaa8d940e7e1cadf651054a58d6953fee03149587 (patch)
treea41ba452b3c989b38bb6f33100124ec191f6a247 /sys
parent347a1a0eeb5aa84e287e443a468a47a0fafd153f (diff)
kernel/amd64: gdt: Add user CS/DS defines
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'sys')
-rw-r--r--sys/include/arch/amd64/gdt.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/include/arch/amd64/gdt.h b/sys/include/arch/amd64/gdt.h
index ce7dd60..f87416f 100644
--- a/sys/include/arch/amd64/gdt.h
+++ b/sys/include/arch/amd64/gdt.h
@@ -6,6 +6,8 @@
#define KERNEL_CS 0x08
#define KERNEL_DS 0x10
+#define USER_CS 0x18
+#define USER_DS 0x20
#define GDT_TSS 5
struct __packed gdt_entry {