diff options
author | Nobuhiro Iwamatsu | 2010-06-16 16:55:26 +0900 |
---|---|---|
committer | Nobuhiro Iwamatsu | 2010-06-28 11:58:34 +0900 |
commit | 754613f740368f847a2261c5c41b034ff5c51b1c (patch) | |
tree | fb25150557d11066e81f8a8b2147c829a359293c /arch/sh/cpu/sh4 | |
parent | 9a1e3e9fe3165130c228bc861bd96d49df708290 (diff) |
sh: Add trigger_address_error and support cpu reset
This add support cpu reset by trigger_address_error function.
Signed-off-by: Nobuhiro Iwamatsu <nobuhiro.iwamatsu.yj@renesas.com>
Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
Diffstat (limited to 'arch/sh/cpu/sh4')
-rw-r--r-- | arch/sh/cpu/sh4/watchdog.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/sh/cpu/sh4/watchdog.c b/arch/sh/cpu/sh4/watchdog.c index f6924290f00..d7e1703e696 100644 --- a/arch/sh/cpu/sh4/watchdog.c +++ b/arch/sh/cpu/sh4/watchdog.c @@ -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) ; } |