From 03e718c2c880ab75aaa83f9a2e0c15e600beda09 Mon Sep 17 00:00:00 2001 From: Ruslan Isaev Date: Mon, 7 Apr 2025 14:15:43 +0300 Subject: [PATCH] gdt: change size bit to 1 --- src/gdt.asm | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/gdt.asm b/src/gdt.asm index 1184260..a9c61a6 100644 --- a/src/gdt.asm +++ b/src/gdt.asm @@ -13,7 +13,7 @@ gdt_code: dw 0 ; 16-31 base db 0 ; 32-39 base db 10011010b ; 40-47 access - db 11001111b ; 48-55 limit (48-51) and flags (52-55) + db 11101111b ; 48-55 limit (48-51) and flags (52-55) db 0 ; 56-63 base gdt_data: @@ -21,7 +21,7 @@ gdt_data: dw 0 ; 16-31 base db 0 ; 32-39 base db 10010010b ; 40-47 access - db 11001111b ; 48-55 limit (48-51) and flags (52-55) + db 11101111b ; 48-55 limit (48-51) and flags (52-55) db 0 ; 56-63 base gdt_code_ring3: @@ -29,7 +29,7 @@ gdt_code_ring3: dw 0 db 0 db 11111010b - db 11001111b + db 11101111b db 0 gdt_data_ring3: @@ -37,7 +37,7 @@ gdt_data_ring3: dw 0 db 0 db 11110010b - db 11001111b + db 11101111b db 0 gdt_tss: