]> rtime.felk.cvut.cz Git - sojka/libev.git/commitdiff
mips addition by Anton Kirilov
authorMarc Alexander Lehmann <libev@schmorp.de>
Wed, 22 Feb 2012 01:53:00 +0000 (01:53 +0000)
committerMarc Alexander Lehmann <libev@schmorp.de>
Wed, 22 Feb 2012 01:53:00 +0000 (01:53 +0000)
ev.c

diff --git a/ev.c b/ev.c
index 9d1ba993009bce4300b827071233cd1877eb3dc9..db768030463db4472461081648b8bc352cb0722b 100644 (file)
--- a/ev.c
+++ b/ev.c
@@ -579,6 +579,8 @@ struct signalfd_siginfo
       #define ECB_MEMORY_FENCE_RELEASE __asm__ __volatile__ ("membar #LoadStore |             #StoreStore")
     #elif defined(__s390__) || defined(__s390x__)
       #define ECB_MEMORY_FENCE         __asm__ __volatile__ ("bcr 15,0" : : : "memory")
+    #elif defined(__mips__)
+      #define ECB_MEMORY_FENCE         __asm__ __volatile__ ("sync" : : : "memory")
     #endif
   #endif
 #endif