summaryrefslogtreecommitdiffstats
path: root/arch/sh/include
diff options
context:
space:
mode:
authorNobuhiro Iwamatsu <nobuhiro.iwamatsu.yj@renesas.com>2010-06-16 16:55:26 +0900
committerNobuhiro Iwamatsu <iwamatsu@nigauri.org>2010-06-28 11:58:34 +0900
commit754613f740368f847a2261c5c41b034ff5c51b1c (patch)
treefb25150557d11066e81f8a8b2147c829a359293c /arch/sh/include
parent9a1e3e9fe3165130c228bc861bd96d49df708290 (diff)
downloadtalos-obmc-uboot-754613f740368f847a2261c5c41b034ff5c51b1c.tar.gz
talos-obmc-uboot-754613f740368f847a2261c5c41b034ff5c51b1c.zip
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/include')
-rw-r--r--arch/sh/include/asm/system.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/arch/sh/include/asm/system.h b/arch/sh/include/asm/system.h
index 90a53a0dc4..56fd77acea 100644
--- a/arch/sh/include/asm/system.h
+++ b/arch/sh/include/asm/system.h
@@ -272,4 +272,14 @@ void enable_hlt(void);
#define arch_align_stack(x) (x)
+static inline void trigger_address_error(void)
+{
+ __asm__ __volatile__ (
+ "ldc %0, sr\n\t"
+ "mov.l @%1, %0"
+ :
+ : "r" (0x10000000), "r" (0x80000001)
+ );
+}
+
#endif
OpenPOWER on IntegriCloud