sh4: move reset_cpu() from watchdog.c to cpu.c

The next patch will remove all the other code from watchdog.c, which
would leave just this function in there. It seems just as natural for
this function to be defined in cpu.c, allowing us to delete watchdog.c
completely.

Cc: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
Signed-off-by: Rasmus Villemoes <rasmus.villemoes@prevas.dk>
Reviewed-by: Stefan Roese <sr@denx.de>
This commit is contained in:
Rasmus Villemoes 2024-05-28 13:13:22 +02:00 committed by Stefan Roese
parent 945fc27822
commit 167f841ed4
2 changed files with 10 additions and 9 deletions

View File

@ -10,6 +10,16 @@
#include <net.h>
#include <netdev.h>
#include <asm/processor.h>
#include <asm/system.h>
void reset_cpu(void)
{
/* Address error with SR.BL=1 first. */
trigger_address_error();
while (1)
;
}
int checkcpu(void)
{

View File

@ -49,12 +49,3 @@ int watchdog_disable(void)
return 0;
}
#endif
void reset_cpu(void)
{
/* Address error with SR.BL=1 first. */
trigger_address_error();
while (1)
;
}