fix(gdt): set limit to 0xfffff
This commit is contained in:
parent
a5ff8a6a92
commit
5ed734fae5
4
k/gdt.c
4
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;
|
||||
|
Loading…
Reference in New Issue
Block a user