diff --git a/include/kernel/gdt.h b/include/kernel/gdt.h index b4a44ca..63f5686 100644 --- a/include/kernel/gdt.h +++ b/include/kernel/gdt.h @@ -2,7 +2,7 @@ #ifndef _GDT_H_ #define _GDT_H_ -#define GDT_NUMDESC 64 +#define GDT_NUMDESC 192 #define GDT_SIZE (64 * GDT_NUMDESC) #define GDT_ACCESS_DATA_RING0 0b10010010 diff --git a/init/main.c b/init/main.c index 72ad324..eae01c9 100644 --- a/init/main.c +++ b/init/main.c @@ -165,7 +165,8 @@ void kmain(void) void *kstack = buddy_alloc(KSTACK_SIZE); uintptr_t ptr = (uintptr_t)kstack + KSTACK_SIZE - 8; - gdt_insert_tss(ptr); + uint16_t tss = gdt_insert_tss(ptr); + ltr(tss); /* init the application processors */ struct limine_smp_response *smp_resp = smp_req.response;