summaryrefslogtreecommitdiff
path: root/src/kernel/arch/amd64/32/gdt.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/kernel/arch/amd64/32/gdt.c')
-rw-r--r--src/kernel/arch/amd64/32/gdt.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/kernel/arch/amd64/32/gdt.c b/src/kernel/arch/amd64/32/gdt.c
index bd5fa48..e643f27 100644
--- a/src/kernel/arch/amd64/32/gdt.c
+++ b/src/kernel/arch/amd64/32/gdt.c
@@ -75,8 +75,9 @@ void gdt_init(void) {
gdt_fillout(&GDT[SEG_r0code], 0, true);
gdt_fillout(&GDT[SEG_r0data], 0, false);
- gdt_fillout(&GDT[SEG_r3code], 3, true);
+ gdt_fillout(&GDT[SEG_r3code32], 3, true);
gdt_fillout(&GDT[SEG_r3data], 3, false);
+ gdt_fillout(&GDT[SEG_r3code], 3, true);
lgdt_arg.limit = sizeof(GDT) - 1;
lgdt_arg.base = (uint64_t)&GDT;