* [PATCH] fix ARCH=ppc timer_interrupt after global pt_regs
@ 2006-10-16 19:30 Peter Korsgaard
2006-10-16 20:05 ` Josh Boyer
0 siblings, 1 reply; 5+ messages in thread
From: Peter Korsgaard @ 2006-10-16 19:30 UTC (permalink / raw)
To: paulus; +Cc: linuxppc-dev
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 <jacmet@sunsite.dk>
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 <linux/time.h>
#include <linux/init.h>
#include <linux/profile.h>
+#include <linux/irq.h>
#include <asm/io.h>
#include <asm/nvram.h>
@@ -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
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: [PATCH] fix ARCH=ppc timer_interrupt after global pt_regs
2006-10-16 19:30 [PATCH] fix ARCH=ppc timer_interrupt after global pt_regs Peter Korsgaard
@ 2006-10-16 20:05 ` Josh Boyer
2006-10-16 20:18 ` Peter Korsgaard
0 siblings, 1 reply; 5+ messages in thread
From: Josh Boyer @ 2006-10-16 20:05 UTC (permalink / raw)
To: Peter Korsgaard; +Cc: linuxppc-dev, paulus
On Mon, 2006-10-16 at 21:30 +0200, Peter Korsgaard wrote:
> 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.
Kumar Galak already fixed this on Oct 11 in the powerpc git tree.
Paul, could you send this fix to Linus soon please?
josh
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] fix ARCH=ppc timer_interrupt after global pt_regs
2006-10-16 20:05 ` Josh Boyer
@ 2006-10-16 20:18 ` Peter Korsgaard
2006-10-16 20:22 ` Kumar Gala
0 siblings, 1 reply; 5+ messages in thread
From: Peter Korsgaard @ 2006-10-16 20:18 UTC (permalink / raw)
To: Josh Boyer; +Cc: linuxppc-dev, paulus
>>>>> "JB" == Josh Boyer <jwboyer@linux.vnet.ibm.com> writes:
Hi,
JB> Kumar Galak already fixed this on Oct 11 in the powerpc git tree.
Ahh, I didn't notice.
JB> Paul, could you send this fix to Linus soon please?
Yes, please - I spend most of the morning tracking this down.
--
Bye, Peter Korsgaard
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] fix ARCH=ppc timer_interrupt after global pt_regs
2006-10-16 20:18 ` Peter Korsgaard
@ 2006-10-16 20:22 ` Kumar Gala
2006-10-16 20:40 ` Kumar Gala
0 siblings, 1 reply; 5+ messages in thread
From: Kumar Gala @ 2006-10-16 20:22 UTC (permalink / raw)
To: Peter Korsgaard; +Cc: linuxppc-dev, paulus
On Oct 16, 2006, at 3:18 PM, Peter Korsgaard wrote:
>>>>>> "JB" == Josh Boyer <jwboyer@linux.vnet.ibm.com> writes:
>
> Hi,
>
> JB> Kumar Galak already fixed this on Oct 11 in the powerpc git tree.
>
> Ahh, I didn't notice.
>
> JB> Paul, could you send this fix to Linus soon please?
>
> Yes, please - I spend most of the morning tracking this down.
Yeah, akpm picked up the patch for -mm.
- k
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] fix ARCH=ppc timer_interrupt after global pt_regs
2006-10-16 20:22 ` Kumar Gala
@ 2006-10-16 20:40 ` Kumar Gala
0 siblings, 0 replies; 5+ messages in thread
From: Kumar Gala @ 2006-10-16 20:40 UTC (permalink / raw)
To: Kumar Gala; +Cc: Peter Korsgaard, paulus, linuxppc-dev
On Oct 16, 2006, at 3:22 PM, Kumar Gala wrote:
>
> On Oct 16, 2006, at 3:18 PM, Peter Korsgaard wrote:
>
>>>>>>> "JB" == Josh Boyer <jwboyer@linux.vnet.ibm.com> writes:
>>
>> Hi,
>>
>> JB> Kumar Galak already fixed this on Oct 11 in the powerpc git tree.
>>
>> Ahh, I didn't notice.
>>
>> JB> Paul, could you send this fix to Linus soon please?
>>
>> Yes, please - I spend most of the morning tracking this down.
>
> Yeah, akpm picked up the patch for -mm.
Paul's got this in is powerpc.git tree now so it should go to Linus
on his next pull request.
- k
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2006-10-16 20:40 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-10-16 19:30 [PATCH] fix ARCH=ppc timer_interrupt after global pt_regs Peter Korsgaard
2006-10-16 20:05 ` Josh Boyer
2006-10-16 20:18 ` Peter Korsgaard
2006-10-16 20:22 ` Kumar Gala
2006-10-16 20:40 ` Kumar Gala
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox