diff options
Diffstat (limited to 'arch/x86/kernel/traps_32.c')
-rw-r--r-- | arch/x86/kernel/traps_32.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/arch/x86/kernel/traps_32.c b/arch/x86/kernel/traps_32.c index 16c056ba14ee..e2598505ef5c 100644 --- a/arch/x86/kernel/traps_32.c +++ b/arch/x86/kernel/traps_32.c | |||
@@ -652,6 +652,8 @@ do_general_protection(struct pt_regs *regs, long error_code) | |||
652 | struct tss_struct *tss; | 652 | struct tss_struct *tss; |
653 | int cpu; | 653 | int cpu; |
654 | 654 | ||
655 | conditional_sti(regs); | ||
656 | |||
655 | cpu = get_cpu(); | 657 | cpu = get_cpu(); |
656 | tss = &per_cpu(init_tss, cpu); | 658 | tss = &per_cpu(init_tss, cpu); |
657 | thread = ¤t->thread; | 659 | thread = ¤t->thread; |
@@ -1273,7 +1275,7 @@ void __init trap_init(void) | |||
1273 | set_intr_gate(10, &invalid_TSS); | 1275 | set_intr_gate(10, &invalid_TSS); |
1274 | set_intr_gate(11, &segment_not_present); | 1276 | set_intr_gate(11, &segment_not_present); |
1275 | set_intr_gate(12, &stack_segment); | 1277 | set_intr_gate(12, &stack_segment); |
1276 | set_trap_gate(13, &general_protection); | 1278 | set_intr_gate(13, &general_protection); |
1277 | set_intr_gate(14, &page_fault); | 1279 | set_intr_gate(14, &page_fault); |
1278 | set_trap_gate(15, &spurious_interrupt_bug); | 1280 | set_trap_gate(15, &spurious_interrupt_bug); |
1279 | set_trap_gate(16, &coprocessor_error); | 1281 | set_trap_gate(16, &coprocessor_error); |