linux-mips
[Top] [All Lists]

[PATCH] Fix mmiowb() for MIPS I

To: linux-mips@linux-mips.org
Subject: [PATCH] Fix mmiowb() for MIPS I
From: Atsushi Nemoto <anemo@mba.ocn.ne.jp>
Date: Thu, 22 Feb 2007 02:10:14 +0900 (JST)
Cc: ralf@linux-mips.org
Original-recipient: rfc822;linux-mips@linux-mips.org
Sender: linux-mips-bounce@linux-mips.org
The SYNC instruction is not available on MIPS I.  Use __sync() instead.

Signed-off-by: Atsushi Nemoto <anemo@mba.ocn.ne.jp>
---
diff --git a/include/asm-mips/io.h b/include/asm-mips/io.h
index 92ec261..855c304 100644
--- a/include/asm-mips/io.h
+++ b/include/asm-mips/io.h
@@ -502,8 +502,7 @@ BUILDSTRING(q, u64)
 #endif
 
 
-/* Depends on MIPS II instruction set */
-#define mmiowb() asm volatile ("sync" ::: "memory")
+#define mmiowb() __sync()
 
 static inline void memset_io(volatile void __iomem *addr, unsigned char val, 
int count)
 {

<Prev in Thread] Current Thread [Next in Thread>