[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:
@@ -3,6 +3,7 @@
|
||||
#include <stdint.h>
|
||||
|
||||
class GDT;
|
||||
class IDT;
|
||||
class lapic;
|
||||
class process;
|
||||
struct TCB;
|
||||
@@ -30,6 +31,7 @@ struct cpu_data
|
||||
TCB *tcb;
|
||||
thread *thread;
|
||||
process *process;
|
||||
IDT *idt;
|
||||
TSS *tss;
|
||||
GDT *gdt;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user