temporary fence hack

master
Marc Alexander Lehmann 12 years ago
parent 1d4d311fae
commit e457ecf4af
  1. 2
      ev.c

@ -499,7 +499,7 @@ struct signalfd_siginfo
#if __x86
#define ECB_MEMORY_FENCE __asm__ __volatile__ ("lock; orb $0, -1(%%esp)" : : : "memory")
#define ECB_MEMORY_FENCE_ACQUIRE ECB_MEMORY_FENCE
#define ECB_MEMORY_FENCE_RELEASE ECB_MEMORY_FENCE /* better be safe than sorry */
#define ECB_MEMORY_FENCE_RELEASE ECB_MEMORY_FENCE
#elif __amd64
#define ECB_MEMORY_FENCE __asm__ __volatile__ ("mfence" : : : "memory")
#define ECB_MEMORY_FENCE_ACQUIRE __asm__ __volatile__ ("lfence" : : : "memory")

Loading…
Cancel
Save