gdt: increase GDT size

This commit is contained in:
Michael Shaw 2023-11-01 17:47:09 -04:00
commit e7ceff19ec
2 changed files with 3 additions and 2 deletions

View file

@ -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

View file

@ -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;