kernel: fix tss size

This commit is contained in:
K. Lange 2022-01-12 21:25:07 +09:00
parent fdb0b43c04
commit a8b94bdc32

View File

@ -87,7 +87,7 @@ void gdt_install(void) {
static void write_tss(int32_t num, uint16_t ss0, uint32_t esp0) {
tss_entry_t * tss = &gdt.tss;
uintptr_t base = (uintptr_t)tss;
uintptr_t limit = base + sizeof *tss;
uintptr_t limit = sizeof *tss;
/* Add the TSS descriptor to the GDT */
gdt_set_gate(num, base, limit, 0xE9, 0x00);