libecb memory fence on s390 and s390x

Alexey Borzenkov snaury at gmail.com
Fri Jan 27 23:07:33 CET 2012


On Sat, Jan 28, 2012 at 2:06 AM, Alexey Borzenkov <snaury at gmail.com> wrote:
> ("bcr 15, 0", : : : "memory")

Ooops, stray comma!

--- ecb.h.orig	2012-01-28 01:53:08.000000000 +0400
+++ ecb.h	2012-01-28 02:06:53.000000000 +0400
@@ -94,6 +94,8 @@
       #define ECB_MEMORY_FENCE         __asm__ __volatile__ ("membar
#LoadStore | #LoadLoad | #StoreStore | #StoreLoad | " : : : "memory")
       #define ECB_MEMORY_FENCE_ACQUIRE __asm__ __volatile__ ("membar
#LoadStore | #LoadLoad" : : : "memory")
       #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")
     #endif
   #endif
 #endif



More information about the libev mailing list