mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-09-06 12:53:21 +09:00
![]() 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 probably overwrite r0 and cause an endless loop. The following patch changes to using r14+r15 instead of r6+r7 (to resemble what would have been generated by a C compiler) and saves all necessary registers on the stack. The patch has been tested on a custom MPC5125 based machine using the 512x powerpc architecture. Signed-off-by: Mats Karrman <mats.karrman@tritech.se> Cc: Wolfgang Denk <wd@denx.de> Acked-by: Joakim Tjernlund <joakim.tjernlund@transmode.se> Tested-by: Stefan Roese <sr@denx.de> |
||
---|---|---|
.. | ||
_ashldi3.S | ||
_ashrdi3.S | ||
_lshrdi3.S | ||
bat_rw.c | ||
board.c | ||
bootm.c | ||
cache.c | ||
extable.c | ||
ide.c | ||
ide.h | ||
interrupts.c | ||
kgdb.c | ||
Makefile | ||
memcpy_mpc5200.c | ||
ppccache.S | ||
ppcstring.S | ||
reloc.S | ||
spl.c | ||
ticks.S | ||
time.c |