b5e1dfa552
Problem reported by landry@ Cluestick from kettenis@
22 lines
907 B
Plaintext
22 lines
907 B
Plaintext
$OpenBSD: patch-ev_c,v 1.3 2012/08/21 13:22:50 dcoppa Exp $
|
|
|
|
Add support for OpenBSD/alpha and OpenBSD/mips64 (latter from ev.c -r1.412).
|
|
|
|
Add support for OpenBSD/hppa
|
|
|
|
--- ev.c.orig Sat Feb 4 20:09:52 2012
|
|
+++ ev.c Tue Aug 21 14:14:58 2012
|
|
@@ -579,6 +579,12 @@ struct signalfd_siginfo
|
|
#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")
|
|
+ #elif defined(__mips__)
|
|
+ #define ECB_MEMORY_FENCE __asm__ __volatile__ ("sync" : : : "memory")
|
|
+ #elif defined(__alpha__)
|
|
+ #define ECB_MEMORY_FENCE __asm__ __volatile__ ("mb" : : : "memory")
|
|
+ #elif defined(__hppa__)
|
|
+ #define ECB_MEMORY_FENCE __asm__ __volatile__ ("sync" : : : "memory")
|
|
#endif
|
|
#endif
|
|
#endif
|