summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Moffett <ian@osmora.org>2025-11-19 15:09:13 -0500
committerIan Moffett <ian@osmora.org>2025-11-19 15:09:13 -0500
commita3c4e81edef31bef265acb64460220a9282909bf (patch)
treedb79b5a57add4d81a0d765fe207e5f7da2a3f60f
parent82560fd7d43ec7bcde2410604cd2b2f355fcf011 (diff)
kern/amd64: cpu: Add user segment descriptors
Signed-off-by: Ian Moffett <ian@osmora.org>
-rw-r--r--sys/arch/amd64/cpu/gdt.S14
1 files changed, 14 insertions, 0 deletions
diff --git a/sys/arch/amd64/cpu/gdt.S b/sys/arch/amd64/cpu/gdt.S
index 9c508ee..1ffe53c 100644
--- a/sys/arch/amd64/cpu/gdt.S
+++ b/sys/arch/amd64/cpu/gdt.S
@@ -85,6 +85,20 @@ GDT:
.byte 0b10010010
.byte 0b00000000
.byte 0x00
+.UCODE:
+ .word 0x0000
+ .word 0x0000
+ .byte 0x00
+ .byte 0b11111010
+ .byte 0b10101111
+ .byte 0x00
+.UDATA:
+ .word 0x0000
+ .word 0x0000
+ .byte 0x00
+ .byte 0b11110010
+ .byte 0b00000000
+ .byte 0x00
.globl GDTR
GDTR: