From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from hoefnix.telenet-ops.be (hoefnix.telenet-ops.be [195.130.132.54]) by ozlabs.org (Postfix) with ESMTP id BEC2667CB3 for ; Tue, 17 Oct 2006 07:34:30 +1000 (EST) Received: from assei2bl6.telenet-ops.be (assei2bl6.telenet-ops.be [195.130.133.69]) by hoefnix.telenet-ops.be (Postfix) with ESMTP id 02E24D8F0B for ; Mon, 16 Oct 2006 21:20:49 +0200 (CEST) From: Peter Korsgaard To: paulus@samba.org Subject: [PATCH] fixup ARCH=ppc timer_interrupt after global pt_regs Date: Mon, 16 Oct 2006 21:20:35 +0200 Message-ID: <87bqocqd8c.fsf@slug.be.48ers.dk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: linuxppc-dev@ozlabs.org List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Hi, 2.6.19-rc2 doesn't boot on arch/ppc (atleast of 4xx), because the 'global-pt_regs' megapatch forgot to fix up the arch/ppc timer_interrupt handler. This patch fixes it. Signed-off-by: Peter Korsgaard diff -urpN linux-2.6.19-rc2.orig/arch/ppc/kernel/time.c linux-2.6.19-rc2/arch/ppc/kernel/time.c --- linux-2.6.19-rc2.orig/arch/ppc/kernel/time.c 2006-10-16 21:05:52.000000000 +0200 +++ linux-2.6.19-rc2/arch/ppc/kernel/time.c 2006-10-16 21:12:42.000000000 +0200 @@ -56,6 +56,7 @@ #include #include #include +#include #include #include @@ -129,6 +130,7 @@ void wakeup_decrementer(void) */ void timer_interrupt(struct pt_regs * regs) { + struct pt_regs *old_regs; int next_dec; unsigned long cpu = smp_processor_id(); unsigned jiffy_stamp = last_jiffy_stamp(cpu); @@ -137,6 +139,7 @@ void timer_interrupt(struct pt_regs * re if (atomic_read(&ppc_n_lost_interrupts) != 0) do_IRQ(regs); + old_regs = set_irq_regs(regs); irq_enter(); while ((next_dec = tb_ticks_per_jiffy - tb_delta(&jiffy_stamp)) <= 0) { @@ -188,6 +191,7 @@ void timer_interrupt(struct pt_regs * re ppc_md.heartbeat(); irq_exit(); + set_irq_regs(old_regs); } /* -- Bye, Peter Korsgaard