Commit c6df0d71 authored by Alexander van Heukelum's avatar Alexander van Heukelum Committed by Ingo Molnar

i386: convert hardware exception 13 to an interrupt gate

Handle general protection exception with interrupt initially off.
Signed-off-by: default avatarAlexander van Heukelum <heukelum@fastmail.fm>
Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
parent f5ca8187
...@@ -652,6 +652,8 @@ do_general_protection(struct pt_regs *regs, long error_code) ...@@ -652,6 +652,8 @@ do_general_protection(struct pt_regs *regs, long error_code)
struct tss_struct *tss; struct tss_struct *tss;
int cpu; int cpu;
conditional_sti(regs);
cpu = get_cpu(); cpu = get_cpu();
tss = &per_cpu(init_tss, cpu); tss = &per_cpu(init_tss, cpu);
thread = &current->thread; thread = &current->thread;
...@@ -1273,7 +1275,7 @@ void __init trap_init(void) ...@@ -1273,7 +1275,7 @@ void __init trap_init(void)
set_intr_gate(10, &invalid_TSS); set_intr_gate(10, &invalid_TSS);
set_intr_gate(11, &segment_not_present); set_intr_gate(11, &segment_not_present);
set_intr_gate(12, &stack_segment); 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_intr_gate(14, &page_fault);
set_trap_gate(15, &spurious_interrupt_bug); set_trap_gate(15, &spurious_interrupt_bug);
set_trap_gate(16, &coprocessor_error); set_trap_gate(16, &coprocessor_error);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment