summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
Diffstat (limited to 'sys')
-rw-r--r--sys/arch/amd64/cpu/gdt.S21
1 files changed, 18 insertions, 3 deletions
diff --git a/sys/arch/amd64/cpu/gdt.S b/sys/arch/amd64/cpu/gdt.S
index b46f397..9c508ee 100644
--- a/sys/arch/amd64/cpu/gdt.S
+++ b/sys/arch/amd64/cpu/gdt.S
@@ -65,11 +65,26 @@ gdt_load:
.globl GDT
GDT:
.NULL:
- .quad 0x0000000000000000
+ .word 0x0000
+ .word 0x0000
+ .byte 0x00
+ .byte 0b00000000
+ .byte 0b00000000
+ .byte 0x00
.CODE:
- .quad 0x00209A0000000000
+ .word 0x0000
+ .word 0x0000
+ .byte 0x00
+ .byte 0b10011010
+ .byte 0b00100000
+ .byte 0x00
.DATA:
- .quad 0x0000920000000000
+ .word 0x0000
+ .word 0x0000
+ .byte 0x00
+ .byte 0b10010010
+ .byte 0b00000000
+ .byte 0x00
.globl GDTR
GDTR: