[kernel] Make IDT per-cpu, not global

Since we modify IST entries while handling interrupts, the IDT cannot be
a global data structure. Allocate new ones for each CPU.
This commit is contained in:
Justin C. Miller
2021-02-19 21:51:25 -08:00
parent 2d6987341c
commit 6a41446185
7 changed files with 28 additions and 19 deletions

View File

@@ -15,6 +15,7 @@ struc CPU_DATA
.tcb: resq 1
.thread: resq 1
.process: resq 1
.idt: resq 1
.tss: resq 1
.gdt: resq 1
endstruc