Skip to content

Commit

Permalink
gdt: null ignored fields
Browse files Browse the repository at this point in the history
  • Loading branch information
karlek committed May 9, 2024
1 parent eda8761 commit 3e295fe
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/boot/long_mode.asm
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ gdt64:
dq 0 ; Zero entry
.code: equ $ - gdt64
; Limit
dw 0xffff
dw 0x0000
; Base
dw 0x0000
; Base (mid)
Expand All @@ -98,12 +98,12 @@ gdt64:
; Flags & limit
; Long mode, granularity
; 0b1010_1111 == (1 << 5) | (1 << 7) | 0x0f
db 10101111b
db 10100000b
; Base (high)
db 0x00
.data: equ $ - gdt64
; Limit
dw 0xffff
dw 0x0000
; Base
dw 0x0000
; Base (mid)
Expand All @@ -114,12 +114,12 @@ gdt64:
; Flags & limit
; Long mode, granularity
; 0b1010_1111 == (1 << 5) | (1 << 7) | 0x0f
db 10101111b
db 10100000b
; Base (high)
db 0x00
.user_data: equ $ - gdt64
; Limit
dw 0xffff
dw 0x0000
; Base
dw 0x0000
; Base (mid)
Expand All @@ -129,12 +129,12 @@ gdt64:
db 0xf2
; Flags & limit
; Long mode, granularity
db 10101111b
db 10100000b
; Base (high)
db 0x00
.user_code: equ $ - gdt64
; Limit
dw 0xffff
dw 0x0000
; Base
dw 0x0000
; Base (mid)
Expand All @@ -144,7 +144,7 @@ gdt64:
db 0xfa
; Flags & limit
; Long mode, granularity
db 10101111b
db 10100000b
; Base (high)
db 0x00
.tss: equ $ - gdt64
Expand Down

0 comments on commit 3e295fe

Please sign in to comment.