summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorroot <root>2012-04-12 04:10:15 +0000
committerroot <root>2012-04-12 04:10:15 +0000
commit31cb3c196903b5e593525f3fb49145b09ed6d9af (patch)
treeaf908e9496e7545fee5f3d120e4971eb372984fc
parent86fba58497117ab0fe688703f4d77d4bfad33189 (diff)
*** empty log message ***
-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