[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Tue, 9 Sep 2008 21:56:07 +0200
From: heukelum@...tmail.fm
To: linux-kernel@...r.kernel.org, mingo@...e.hu, ak@...e.de
Cc: Alexander van Heukelum <heukelum@...tmail.fm>
Subject: [PATCH 13/24] i386: convert hardware exception 13 to an interrupt gate
From: Alexander van Heukelum <heukelum@...tmail.fm>
Handle general protection exception with interrupt initially off.
Signed-off-by: Alexander van Heukelum <heukelum@...tmail.fm>
---
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 e535324..c3b636e 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)
struct tss_struct *tss;
int cpu;
+ conditional_sti(regs);
+
cpu = get_cpu();
tss = &per_cpu(init_tss, cpu);
thread = ¤t->thread;
@@ -1271,7 +1273,7 @@ void __init trap_init(void)
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);
--
1.5.4.3
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists