public inbox for linux-sh@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] sh: Drop dependence for 29bit mode of
@ 2010-06-08  2:00 Nobuhiro Iwamatsu
  2010-06-08  3:10 ` [PATCH 1/2] sh: Drop dependence for 29bit mode of trigger_address_error() Paul Mundt
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Nobuhiro Iwamatsu @ 2010-06-08  2:00 UTC (permalink / raw)
  To: linux-sh

When CONFIG_PMB enable, ITLB is not cleared by reset of watchdog timer.
This should use trigger_address_error().

Signed-off-by: Nobuhiro Iwamatsu <nobuhiro.iwamatsu.yj@renesas.com>
---
 arch/sh/include/asm/system_32.h |   13 ++++++-------
 1 files changed, 6 insertions(+), 7 deletions(-)

diff --git a/arch/sh/include/asm/system_32.h b/arch/sh/include/asm/system_32.h
index 51296b3..9bd2684 100644
--- a/arch/sh/include/asm/system_32.h
+++ b/arch/sh/include/asm/system_32.h
@@ -216,13 +216,12 @@ int handle_unaligned_access(insn_size_t
instruction, struct pt_regs *regs,

 static inline void trigger_address_error(void)
 {
-	if (__in_29bit_mode())
-		__asm__ __volatile__ (
-			"ldc %0, sr\n\t"
-			"mov.l @%1, %0"
-			:
-			: "r" (0x10000000), "r" (0x80000001)
-		);
+	__asm__ __volatile__ (
+		"ldc %0, sr\n\t"
+		"mov.l @%1, %0"
+		:
+		: "r" (0x10000000), "r" (0x80000001)
+	);
 }

 asmlinkage void do_address_error(struct pt_regs *regs,
-- 
1.7.0.3

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2010-06-08  4:39 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-06-08  2:00 [PATCH 1/2] sh: Drop dependence for 29bit mode of Nobuhiro Iwamatsu
2010-06-08  3:10 ` [PATCH 1/2] sh: Drop dependence for 29bit mode of trigger_address_error() Paul Mundt
2010-06-08  4:31 ` [PATCH 1/2] sh: Drop dependence for 29bit mode of Nobuhiro Iwamatsu
2010-06-08  4:39 ` [PATCH 1/2] sh: Drop dependence for 29bit mode of trigger_address_error() Paul Mundt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox