From: Steven Rostedt Date: Thu, 03 Jan 2008 07:16:11 +0000 Subject: [RFC PATCH 02/11] Add fastcall to do_IRQ for i386 Message-Id: <20080103072226.934978594@goodmis.org> List-Id: References: <20080103071609.478486470@goodmis.org> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: LKML Cc: Ingo Molnar , Linus Torvalds , Andrew Morton , Peter Zijlstra , Christoph Hellwig , Mathieu Desnoyers , Gregory Haskins , Arnaldo Carvalho de Melo , "William L. Irwin" , Steven Rostedt MCOUNT will disable the regparm parameters of the i386 compile options. When doing so, this breaks the prototype of do_IRQ where the fastcall must be explicitly called. Also fixed some whitespace damage in the call to do_IRQ. Signed-off-by: Steven Rostedt --- arch/x86/kernel/irq_32.c | 2 +- include/asm-x86/irq_32.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) Index: linux-compile.git/arch/x86/kernel/irq_32.c =================================--- linux-compile.git.orig/arch/x86/kernel/irq_32.c 2007-12-20 00:20:29.000000000 -0500 +++ linux-compile.git/arch/x86/kernel/irq_32.c 2007-12-20 00:21:55.000000000 -0500 @@ -67,7 +67,7 @@ static union irq_ctx *softirq_ctx[NR_CPU * handlers). */ fastcall unsigned int do_IRQ(struct pt_regs *regs) -{ +{ struct pt_regs *old_regs; /* high bit used in ret_from_ code */ int irq = ~regs->orig_eax; Index: linux-compile.git/include/asm-x86/irq_32.h =================================--- linux-compile.git.orig/include/asm-x86/irq_32.h 2007-12-20 00:20:29.000000000 -0500 +++ linux-compile.git/include/asm-x86/irq_32.h 2007-12-20 00:21:55.000000000 -0500 @@ -41,7 +41,7 @@ extern int irqbalance_disable(char *str) extern void fixup_irqs(cpumask_t map); #endif -unsigned int do_IRQ(struct pt_regs *regs); +fastcall unsigned int do_IRQ(struct pt_regs *regs); void init_IRQ(void); void __init native_init_IRQ(void); --