[PATCH] Fix mmiowb() for MIPS I

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The SYNC instruction is not available on MIPS I.  Use __sync() instead.

Signed-off-by: Atsushi Nemoto <anemo@xxxxxxxxxxxxx>
---
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)
 {


[Index of Archives]     [Linux MIPS Home]     [LKML Archive]     [Linux ARM Kernel]     [Linux ARM]     [Linux]     [Git]     [Yosemite News]     [Linux SCSI]     [Linux Hams]

  Powered by Linux