fix(gdt): set limit to 0xfffff

This commit is contained in:
Malo Lecomte 2021-07-13 22:47:20 +02:00
parent a5ff8a6a92
commit 5ed734fae5

@ -6,7 +6,7 @@ static void create_kernel_ds()
{ {
struct gdt_entry *entry = gdt.entries + KERNEL_DS_INDEX; struct gdt_entry *entry = gdt.entries + KERNEL_DS_INDEX;
uint32_t limit = 0xffff; uint32_t limit = 0xfffff;
uint32_t base = 0x0; uint32_t base = 0x0;
entry->granularity = 1; entry->granularity = 1;
@ -34,7 +34,7 @@ static void create_kernel_cs()
{ {
struct gdt_entry *entry = gdt.entries + KERNEL_CS_INDEX; struct gdt_entry *entry = gdt.entries + KERNEL_CS_INDEX;
uint32_t limit = 0xffff; uint32_t limit = 0xfffff;
uint32_t base = 0x0; uint32_t base = 0x0;
entry->granularity = 1; entry->granularity = 1;