i386: convert hardware exception 13 to an interrupt gate
Handle general protection exception with interrupt initially off.
Signed-off-by: Alexander van Heukelum <heukelum@fastmail.fm>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
diff --git a/arch/x86/kernel/traps_32.c b/arch/x86/kernel/traps_32.c
index 16c056b..e259850 100644
--- a/arch/x86/kernel/traps_32.c
+++ b/arch/x86/kernel/traps_32.c
@@ -652,6 +652,8 @@
struct tss_struct *tss;
int cpu;
+ conditional_sti(regs);
+
cpu = get_cpu();
tss = &per_cpu(init_tss, cpu);
thread = ¤t->thread;
@@ -1273,7 +1275,7 @@
set_intr_gate(10, &invalid_TSS);
set_intr_gate(11, &segment_not_present);
set_intr_gate(12, &stack_segment);
- set_trap_gate(13, &general_protection);
+ set_intr_gate(13, &general_protection);
set_intr_gate(14, &page_fault);
set_trap_gate(15, &spurious_interrupt_bug);
set_trap_gate(16, &coprocessor_error);