[U-Boot-Users] watchdog reset in mpc824x timer interrupt.
Gleb Natapov
gleb at nbase.co.il
Fri Sep 19 11:03:06 CEST 2003
Hello Wolfgang,
On Thu, Sep 18, 2003 at 10:22:26AM +0200, Wolfgang Denk wrote:
> in message <20030916120707.GA3629 at nbase.co.il> you wrote:
> >
> > The attached patch moves most of the things related to timer interrupt to
> > ppc_lib/interrupts.c leaving only cpu specific code in cpu/$(CPU)/interrupts.c
> >
> > I only checked it on MPC8245. It works for me.
> >
> > Can you look at the patch please.
> >
> > CHANGELOG:
> > Move most of the things related to timer interrupt to ppc_lib/interrupts.c
>
> You do much more than just this. I appreciate most of your cleanup,
> but I have a few requests:
>
> * Please don't create a new (and undocumented!!) config option
> CONFIG_ACTIVITY_MONITOR - we already have CONFIG_SHOW_ACTIVITY
> which serves exactly this purpose. I see no need for a new option.
Yes CONFIG_SHOW_ACTIVITY is exactly what I need. I didn't find it first time. Thanks.
>
> * Instead of just collecting common stuff in a common file you change
> interfaces here and there. Can you please describe these changes,
> and the reasons for them.
I don't quite understand what interfaces I changed. But I can explain how I see it working
now.
There are common interrupt_init() and timer_interrupt() for all PPC archs.
interrupt_init() calls interrupt_init_cpu() for cpu specific initialization.
interrupt_init_cpu() should set decrementer_count to appropriate value. If
cpu resets decrementer automatically after interrupt (ppc4xx) it should set
decrementer_count to zero.
timer_interrupt() calls timer_interrupt_cpu() for cpu specific handling.
If board has wahtchdog/status_led/other_activity_monitor it works automatically
from general timer_interrupt().
>
> * Please keep existing Copyright notices in place.
I hope new patch contains proper Copyright notices in place.
begin 644 interrupts.patch.gz
M'XL("$O":C\``VEN=&5R<G5P=',N<&%T8V@`[5U[=]K(DO];_A0UF7OG@@$C
M\;*-)]D03!QV_;J`;V9V9HZ.+&2L#2`B"3_N3/:S;U5WZX'0"P?/(QN?Q!BI
MN[JZJ[KZ5]75TMB\N8'*TCZ'R@\PMN;NF"XL*]>6Y5:O+<T>5W5K8LS=ZE0?
M[^GBSMXBYMY.I5))KBG59+E>D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