X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=arch%2Fsh%2Fcpu%2Fsh4%2Fwatchdog.c;h=d7e1703e696cd0cbe278163610c706ed26d16edf;hb=ef123c525370463254a6f8e67563fdb0b0b46412;hp=f6924290f00c381916c9ba24c8ba33625cf8351b;hpb=8f0fec74ac6d0f3a7134ccebafa1ed9bd8c712ba;p=u-boot diff --git a/arch/sh/cpu/sh4/watchdog.c b/arch/sh/cpu/sh4/watchdog.c index f6924290f0..d7e1703e69 100644 --- a/arch/sh/cpu/sh4/watchdog.c +++ b/arch/sh/cpu/sh4/watchdog.c @@ -17,6 +17,7 @@ #include #include +#include #include #define WDT_BASE WTCNT @@ -66,6 +67,9 @@ int watchdog_disable(void) void reset_cpu(unsigned long ignored) { + /* Address error with SR.BL=1 first. */ + trigger_address_error(); + while (1) ; }