]> git.ipfire.org Git - people/ms/u-boot.git/blobdiff - arch/sh/cpu/sh4/watchdog.c
sh: Add trigger_address_error and support cpu reset
[people/ms/u-boot.git] / arch / sh / cpu / sh4 / watchdog.c
index f6924290f00c381916c9ba24c8ba33625cf8351b..d7e1703e696cd0cbe278163610c706ed26d16edf 100644 (file)
@@ -17,6 +17,7 @@
 
 #include <common.h>
 #include <asm/processor.h>
+#include <asm/system.h>
 #include <asm/io.h>
 
 #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)
                ;
 }