diff options
Diffstat (limited to 'arch/x86/kernel/traps_32.c')
-rw-r--r-- | arch/x86/kernel/traps_32.c | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/arch/x86/kernel/traps_32.c b/arch/x86/kernel/traps_32.c index 953172af6e51..2c7ea3827713 100644 --- a/arch/x86/kernel/traps_32.c +++ b/arch/x86/kernel/traps_32.c | |||
@@ -847,10 +847,12 @@ void __init trap_init(void) | |||
847 | #endif | 847 | #endif |
848 | 848 | ||
849 | set_intr_gate(0, ÷_error); | 849 | set_intr_gate(0, ÷_error); |
850 | set_intr_gate(1, &debug); | 850 | set_intr_gate_ist(1, &debug, DEBUG_STACK); |
851 | set_intr_gate(2, &nmi); | 851 | set_intr_gate_ist(2, &nmi, NMI_STACK); |
852 | set_system_intr_gate(3, &int3); /* int3 can be called from all */ | 852 | /* int3 can be called from all */ |
853 | set_system_intr_gate(4, &overflow); /* int4 can be called from all */ | 853 | set_system_intr_gate_ist(3, &int3, DEBUG_STACK); |
854 | /* int4 can be called from all */ | ||
855 | set_system_intr_gate(4, &overflow); | ||
854 | set_intr_gate(5, &bounds); | 856 | set_intr_gate(5, &bounds); |
855 | set_intr_gate(6, &invalid_op); | 857 | set_intr_gate(6, &invalid_op); |
856 | set_intr_gate(7, &device_not_available); | 858 | set_intr_gate(7, &device_not_available); |
@@ -858,14 +860,14 @@ void __init trap_init(void) | |||
858 | set_intr_gate(9, &coprocessor_segment_overrun); | 860 | set_intr_gate(9, &coprocessor_segment_overrun); |
859 | set_intr_gate(10, &invalid_TSS); | 861 | set_intr_gate(10, &invalid_TSS); |
860 | set_intr_gate(11, &segment_not_present); | 862 | set_intr_gate(11, &segment_not_present); |
861 | set_intr_gate(12, &stack_segment); | 863 | set_intr_gate_ist(12, &stack_segment, STACKFAULT_STACK); |
862 | set_intr_gate(13, &general_protection); | 864 | set_intr_gate(13, &general_protection); |
863 | set_intr_gate(14, &page_fault); | 865 | set_intr_gate(14, &page_fault); |
864 | set_intr_gate(15, &spurious_interrupt_bug); | 866 | set_intr_gate(15, &spurious_interrupt_bug); |
865 | set_intr_gate(16, &coprocessor_error); | 867 | set_intr_gate(16, &coprocessor_error); |
866 | set_intr_gate(17, &alignment_check); | 868 | set_intr_gate(17, &alignment_check); |
867 | #ifdef CONFIG_X86_MCE | 869 | #ifdef CONFIG_X86_MCE |
868 | set_intr_gate(18, &machine_check); | 870 | set_intr_gate_ist(18, &machine_check, MCE_STACK); |
869 | #endif | 871 | #endif |
870 | set_intr_gate(19, &simd_coprocessor_error); | 872 | set_intr_gate(19, &simd_coprocessor_error); |
871 | 873 | ||
@@ -881,7 +883,7 @@ void __init trap_init(void) | |||
881 | printk("done.\n"); | 883 | printk("done.\n"); |
882 | } | 884 | } |
883 | 885 | ||
884 | set_system_gate(SYSCALL_VECTOR, &system_call); | 886 | set_system_trap_gate(SYSCALL_VECTOR, &system_call); |
885 | 887 | ||
886 | /* Reserve all the builtin and the syscall vector: */ | 888 | /* Reserve all the builtin and the syscall vector: */ |
887 | for (i = 0; i < FIRST_EXTERNAL_VECTOR; i++) | 889 | for (i = 0; i < FIRST_EXTERNAL_VECTOR; i++) |