提交 358aa703 编写于 作者: N Nobuhiro Iwamatsu 提交者: Paul Mundt

sh: Drop dependence for 29bit mode of trigger_address_error()

When CONFIG_PMB enable, ITLB is not cleared by reset of watchdog timer.
This should use trigger_address_error().
Signed-off-by: NNobuhiro Iwamatsu <nobuhiro.iwamatsu.yj@renesas.com>
Signed-off-by: NPaul Mundt <lethal@linux-sh.org>
上级 59615ecd
...@@ -216,13 +216,12 @@ int handle_unaligned_access(insn_size_t instruction, struct pt_regs *regs, ...@@ -216,13 +216,12 @@ int handle_unaligned_access(insn_size_t instruction, struct pt_regs *regs,
static inline void trigger_address_error(void) static inline void trigger_address_error(void)
{ {
if (__in_29bit_mode()) __asm__ __volatile__ (
__asm__ __volatile__ ( "ldc %0, sr\n\t"
"ldc %0, sr\n\t" "mov.l @%1, %0"
"mov.l @%1, %0" :
: : "r" (0x10000000), "r" (0x80000001)
: "r" (0x10000000), "r" (0x80000001) );
);
} }
asmlinkage void do_address_error(struct pt_regs *regs, asmlinkage void do_address_error(struct pt_regs *regs,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册