kernel: fix tss size
This commit is contained in:
parent
fdb0b43c04
commit
a8b94bdc32
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user