Re: [U-Boot] [PATCH] powerpc/lib: fix unsafe register handling in wait_ticks

2013-01-28 Thread Joakim Tjernlund
> > On 01/27/2013 06:03 PM, Mats Kärrman wrote: > > If watchdog is enabled, the arch/powerpc/lib/ticks.S::wait_ticks() function > > calls the function specified by the WATCHDOG_RESET macro. > > The wait_ticks function depends on the registers r0, r6 and r7 being > > preserved however that is not

Re: [U-Boot] [PATCH] powerpc/lib: fix unsafe register handling in wait_ticks

2013-01-28 Thread Stefan Roese
On 01/27/2013 06:03 PM, Mats Kärrman wrote: > If watchdog is enabled, the arch/powerpc/lib/ticks.S::wait_ticks() function > calls the function specified by the WATCHDOG_RESET macro. > The wait_ticks function depends on the registers r0, r6 and r7 being > preserved however that is not guaranteed, e.

[U-Boot] [PATCH] powerpc/lib: fix unsafe register handling in wait_ticks

2013-01-27 Thread Mats Kärrman
If watchdog is enabled, the arch/powerpc/lib/ticks.S::wait_ticks() function calls the function specified by the WATCHDOG_RESET macro. The wait_ticks function depends on the registers r0, r6 and r7 being preserved however that is not guaranteed, e.g. if the reset function is a C function this will p