summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Changes1
-rw-r--r--ev.c2
2 files changed, 3 insertions, 0 deletions
diff --git a/Changes b/Changes
index 988735e..0ad6023 100644
--- a/Changes
+++ b/Changes
@@ -15,6 +15,7 @@ TODO: throw() for most ev.h functions
libev's EV_ERROR (reported by 191919).
- (ecb) add memory fence support for xlC (Darin McBride).
- (ecb) add memory fence support for gcc-mips (Anton Kirilov).
+ - (ecb) add memory fence support for gcc-alpha (Christian Weisgerber).
- work around some kernels losing file descriptors by leaking
the kqueue descriptor in the child.
diff --git a/ev.c b/ev.c
index 15c58d5..3181a2e 100644
--- a/ev.c
+++ b/ev.c
@@ -581,6 +581,8 @@ struct signalfd_siginfo
#define ECB_MEMORY_FENCE __asm__ __volatile__ ("bcr 15,0" : : : "memory")
#elif defined __mips__
#define ECB_MEMORY_FENCE __asm__ __volatile__ ("sync" : : : "memory")
+ #elif defined __alpha__
+ #define ECB_MEMORY_FENCE __asm__ __volatile__ ("mb" : : : "memory")
#endif
#endif
#endif