All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Fix mmiowb() for MIPS I
@ 2007-02-21 17:10 Atsushi Nemoto
  2007-02-21 17:46 ` Maciej W. Rozycki
  0 siblings, 1 reply; 4+ messages in thread
From: Atsushi Nemoto @ 2007-02-21 17:10 UTC (permalink / raw)
  To: linux-mips; +Cc: ralf

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)
 {

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

end of thread, other threads:[~2007-02-22 15:29 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-02-21 17:10 [PATCH] Fix mmiowb() for MIPS I Atsushi Nemoto
2007-02-21 17:46 ` Maciej W. Rozycki
2007-02-21 18:10   ` Ralf Baechle
2007-02-22 15:28     ` Maciej W. Rozycki

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.