diff options
Diffstat (limited to 'sys/arch/amd64/cpu/gdt.S')
| -rw-r--r-- | sys/arch/amd64/cpu/gdt.S | 35 |
1 files changed, 32 insertions, 3 deletions
diff --git a/sys/arch/amd64/cpu/gdt.S b/sys/arch/amd64/cpu/gdt.S index b46f397..1ffe53c 100644 --- a/sys/arch/amd64/cpu/gdt.S +++ b/sys/arch/amd64/cpu/gdt.S @@ -65,11 +65,40 @@ 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 +.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: |
