summaryrefslogtreecommitdiff
path: root/arch/sh
diff options
context:
space:
mode:
authorYoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>2012-11-04 15:53:13 +0000
committerNobuhiro Iwamatsu <iwamatsu@nigauri.org>2012-11-30 15:06:04 +0900
commit867da0d4fe79baf78b7320b99eea4c7a78b15581 (patch)
treef414c7ca40ce97344632bc602b0dbd479d1099a6 /arch/sh
parentb8715d8def240014da5614a4f940130ec06d9ebf (diff)
downloadu-boot-imx-867da0d4fe79baf78b7320b99eea4c7a78b15581.zip
u-boot-imx-867da0d4fe79baf78b7320b99eea4c7a78b15581.tar.gz
u-boot-imx-867da0d4fe79baf78b7320b99eea4c7a78b15581.tar.bz2
sh: fix trigger_address_error()
The function should set BL bit, but it should not clear other flags. So, the patch uses set_bl_bit() instead of a local asm code. Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com> Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
Diffstat (limited to 'arch/sh')
-rw-r--r--arch/sh/include/asm/system.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/sh/include/asm/system.h b/arch/sh/include/asm/system.h
index 56fd77a..24b5ce8 100644
--- a/arch/sh/include/asm/system.h
+++ b/arch/sh/include/asm/system.h
@@ -274,8 +274,8 @@ void enable_hlt(void);
static inline void trigger_address_error(void)
{
+ set_bl_bit();
__asm__ __volatile__ (
- "ldc %0, sr\n\t"
"mov.l @%1, %0"
:
: "r" (0x10000000), "r" (0x80000001)