Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757624AbYIIUCm (ORCPT ); Tue, 9 Sep 2008 16:02:42 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1755214AbYIIUCT (ORCPT ); Tue, 9 Sep 2008 16:02:19 -0400 Received: from m-relay2.rz.uni-saarland.de ([134.96.7.8]:13210 "EHLO eris.rz.uni-saarland.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755050AbYIIUCR (ORCPT ); Tue, 9 Sep 2008 16:02:17 -0400 From: heukelum@fastmail.fm To: linux-kernel@vger.kernel.org, mingo@elte.hu, ak@suse.de Cc: Alexander van Heukelum Subject: [PATCH 13/24] i386: convert hardware exception 13 to an interrupt gate Date: Tue, 9 Sep 2008 21:56:07 +0200 Message-Id: <1220990178-29773-14-git-send-email-heukelum@fastmail.fm> X-Mailer: git-send-email 1.5.4.3 In-Reply-To: <1220990178-29773-13-git-send-email-heukelum@fastmail.fm> References: <1220990178-29773-1-git-send-email-heukelum@fastmail.fm> <1220990178-29773-2-git-send-email-heukelum@fastmail.fm> <1220990178-29773-3-git-send-email-heukelum@fastmail.fm> <1220990178-29773-4-git-send-email-heukelum@fastmail.fm> <1220990178-29773-5-git-send-email-heukelum@fastmail.fm> <1220990178-29773-6-git-send-email-heukelum@fastmail.fm> <1220990178-29773-7-git-send-email-heukelum@fastmail.fm> <1220990178-29773-8-git-send-email-heukelum@fastmail.fm> <1220990178-29773-9-git-send-email-heukelum@fastmail.fm> <1220990178-29773-10-git-send-email-heukelum@fastmail.fm> <1220990178-29773-11-git-send-email-heukelum@fastmail.fm> <1220990178-29773-12-git-send-email-heukelum@fastmail.fm> <1220990178-29773-13-git-send-email-heukelum@fastmail.fm> X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-3.0 (eris.rz.uni-saarland.de [134.96.7.8]); Tue, 09 Sep 2008 22:01:59 +0200 (CEST) X-AntiVirus: checked by AntiVir MailGate (version: 2.1.2-14; AVE: 7.8.1.28; VDF: 7.0.6.136; host: AntiVir2) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Alexander van Heukelum Handle general protection exception with interrupt initially off. Signed-off-by: Alexander van Heukelum --- 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