diff options
| -rw-r--r-- | arch/x86/kernel/idt.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/arch/x86/kernel/idt.c b/arch/x86/kernel/idt.c index 61b490c69250..6107ee1cb8d5 100644 --- a/arch/x86/kernel/idt.c +++ b/arch/x86/kernel/idt.c | |||
| @@ -44,6 +44,10 @@ struct idt_data { | |||
| 44 | #define ISTG(_vector, _addr, _ist) \ | 44 | #define ISTG(_vector, _addr, _ist) \ |
| 45 | G(_vector, _addr, _ist, GATE_INTERRUPT, DPL0, __KERNEL_CS) | 45 | G(_vector, _addr, _ist, GATE_INTERRUPT, DPL0, __KERNEL_CS) |
| 46 | 46 | ||
| 47 | /* System interrupt gate with interrupt stack */ | ||
| 48 | #define SISTG(_vector, _addr, _ist) \ | ||
| 49 | G(_vector, _addr, _ist, GATE_INTERRUPT, DPL3, __KERNEL_CS) | ||
| 50 | |||
| 47 | /* Task gate */ | 51 | /* Task gate */ |
| 48 | #define TSKG(_vector, _gdt) \ | 52 | #define TSKG(_vector, _gdt) \ |
| 49 | G(_vector, NULL, DEFAULT_STACK, GATE_TASK, DPL0, _gdt << 3) | 53 | G(_vector, NULL, DEFAULT_STACK, GATE_TASK, DPL0, _gdt << 3) |
| @@ -181,7 +185,7 @@ gate_desc debug_idt_table[IDT_ENTRIES] __page_aligned_bss; | |||
| 181 | static const __initdata struct idt_data ist_idts[] = { | 185 | static const __initdata struct idt_data ist_idts[] = { |
| 182 | ISTG(X86_TRAP_DB, debug, DEBUG_STACK), | 186 | ISTG(X86_TRAP_DB, debug, DEBUG_STACK), |
| 183 | ISTG(X86_TRAP_NMI, nmi, NMI_STACK), | 187 | ISTG(X86_TRAP_NMI, nmi, NMI_STACK), |
| 184 | ISTG(X86_TRAP_BP, int3, DEBUG_STACK), | 188 | SISTG(X86_TRAP_BP, int3, DEBUG_STACK), |
| 185 | ISTG(X86_TRAP_DF, double_fault, DOUBLEFAULT_STACK), | 189 | ISTG(X86_TRAP_DF, double_fault, DOUBLEFAULT_STACK), |
| 186 | #ifdef CONFIG_X86_MCE | 190 | #ifdef CONFIG_X86_MCE |
| 187 | ISTG(X86_TRAP_MC, &machine_check, MCE_STACK), | 191 | ISTG(X86_TRAP_MC, &machine_check, MCE_STACK), |
