From a9e727ce2d5229543f1624a284cd406965f1099c Mon Sep 17 00:00:00 2001 From: Marc Alexander Lehmann Date: Thu, 4 Jul 2013 22:32:23 +0000 Subject: [PATCH] *** empty log message *** --- ev.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ev.c b/ev.c index 2fef11c..a818418 100644 --- a/ev.c +++ b/ev.c @@ -629,7 +629,9 @@ struct signalfd_siginfo #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") + /* GNU/Linux emulates sync on mips1 architectures, so we force it's use */ + /* anybody else who still uses mips1 is supposed to send in their version, with detection code. */ + #define ECB_MEMORY_FENCE __asm__ __volatile__ (".set mips2; sync; .set mips0" : : : "memory") #elif defined __alpha__ #define ECB_MEMORY_FENCE __asm__ __volatile__ ("mb" : : : "memory") #elif defined __hppa__