Skip to content

Commit

Permalink
Fix 64-bit GDT
Browse files Browse the repository at this point in the history
  • Loading branch information
CatMe0w committed Dec 22, 2024
1 parent dfff40e commit 9476be2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion loader.asm
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ align 16
gdt_data:
dq 0x0000000000000000 ; NULL descriptor
dq 0x00AF9A000000FFFF ; Code descriptor (64-bit)
dq 0x00CF92000000FFFF ; Data descriptor (32-bit)
dq 0x00AF92000000FFFF ; Data descriptor (64-bit)
gdt_descriptor:
dw (gdt_data_end - gdt_data - 1)
dd gdt_data
Expand Down

0 comments on commit 9476be2

Please sign in to comment.