Commit 358aa703 authored by Nobuhiro Iwamatsu's avatar Nobuhiro Iwamatsu Committed by 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: default avatarNobuhiro Iwamatsu <nobuhiro.iwamatsu.yj@renesas.com>
Signed-off-by: default avatarPaul Mundt <lethal@linux-sh.org>
parent 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%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment