From 5ed734fae5a4ccae8559e9114c4a47789bb10f15 Mon Sep 17 00:00:00 2001 From: Malo Lecomte Date: Tue, 13 Jul 2021 22:47:20 +0200 Subject: [PATCH] fix(gdt): set limit to 0xfffff --- k/gdt.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/k/gdt.c b/k/gdt.c index 7677c59..64dde20 100644 --- a/k/gdt.c +++ b/k/gdt.c @@ -6,7 +6,7 @@ static void create_kernel_ds() { struct gdt_entry *entry = gdt.entries + KERNEL_DS_INDEX; - uint32_t limit = 0xffff; + uint32_t limit = 0xfffff; uint32_t base = 0x0; entry->granularity = 1; @@ -34,7 +34,7 @@ static void create_kernel_cs() { struct gdt_entry *entry = gdt.entries + KERNEL_CS_INDEX; - uint32_t limit = 0xffff; + uint32_t limit = 0xfffff; uint32_t base = 0x0; entry->granularity = 1;