Skip to content

Commit

Permalink
gdt: long mode flag is only used for code segs
Browse files Browse the repository at this point in the history
  • Loading branch information
karlek committed May 9, 2024
1 parent d55b9ed commit c49d04a
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/boot/long_mode.asm
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,7 @@ gdt64:
; Present, dpl=0, descriptor, writable
db 10010010b
; Flags & limit
; Long mode (1 << 5)
db 00100000b
db 00000000b
; Base (high)
db 0x00
.user_data: equ $ - gdt64
Expand All @@ -126,8 +125,7 @@ gdt64:
; Present, dpl=3, writeable
db 0xf2
; Flags & limit
; Long mode
db 00100000b
db 00000000b
; Base (high)
db 0x00
.user_code: equ $ - gdt64
Expand Down

0 comments on commit c49d04a

Please sign in to comment.