sh: fix trigger_address_error()
authorYoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Sun, 4 Nov 2012 15:53:13 +0000 (15:53 +0000)
committerNobuhiro Iwamatsu <iwamatsu@nigauri.org>
Fri, 30 Nov 2012 06:06:04 +0000 (15:06 +0900)
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>
arch/sh/include/asm/system.h

index 56fd77acea6ee0f4acf6e6d74ac75cb89e6b4f99..24b5ce8e3042e0e498c8f1514aa28bca9b23306c 100644 (file)
@@ -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)