summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkettenis <kettenis@openbsd.org>2018-05-14 09:33:20 +0000
committerkettenis <kettenis@openbsd.org>2018-05-14 09:33:20 +0000
commitca950ec43995bb7d9640f1f39d8be4c78a3e7360 (patch)
tree4a9062f4b940b731adc8f372400718beda160a59
parentAdd support to filter on attributes. (diff)
downloadwireguard-openbsd-ca950ec43995bb7d9640f1f39d8be4c78a3e7360.tar.xz
wireguard-openbsd-ca950ec43995bb7d9640f1f39d8be4c78a3e7360.zip
Expose memory barriers to userland.
ok visa@, mpi@
-rw-r--r--sys/arch/hppa/include/atomic.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/arch/hppa/include/atomic.h b/sys/arch/hppa/include/atomic.h
index e255611d0e8..54889a670aa 100644
--- a/sys/arch/hppa/include/atomic.h
+++ b/sys/arch/hppa/include/atomic.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: atomic.h,v 1.10 2016/02/09 06:46:02 dlg Exp $ */
+/* $OpenBSD: atomic.h,v 1.11 2018/05/14 09:33:20 kettenis Exp $ */
/* Public Domain */
@@ -242,6 +242,8 @@ atomic_clearbits_long(volatile unsigned long *uip, unsigned long v)
atomic_leave(eiem);
}
+#endif /* defined(_KERNEL) */
+
/*
* Although the PA-RISC 2.0 architecture allows an implementation to
* be weakly ordered, all PA-RISC processers to date implement a
@@ -261,5 +263,4 @@ __insn_barrier(void)
#define membar_consumer() __insn_barrier()
#define membar_sync() __insn_barrier()
-#endif /* defined(_KERNEL) */
#endif /* _MACHINE_ATOMIC_H_ */