Module Name: src
Committed By: riastradh
Date: Mon Aug 27 07:45:43 UTC 2018
Modified Files:
src/sys/external/bsd/common/include/linux: kernel.h
Log Message:
Just define ACCESS_ONCE rather than patch it out.
To generate a diff of this commit:
cvs rdiff -u -r1.18 -r1.19 src/sys/external/bsd/common/include/linux/kernel.h
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/external/bsd/common/include/linux/kernel.h
diff -u src/sys/external/bsd/common/include/linux/kernel.h:1.18 src/sys/external/bsd/common/include/linux/kernel.h:1.19
--- src/sys/external/bsd/common/include/linux/kernel.h:1.18 Mon Aug 27 07:42:55 2018
+++ src/sys/external/bsd/common/include/linux/kernel.h Mon Aug 27 07:45:43 2018
@@ -1,4 +1,4 @@
-/* $NetBSD: kernel.h,v 1.18 2018/08/27 07:42:55 riastradh Exp $ */
+/* $NetBSD: kernel.h,v 1.19 2018/08/27 07:45:43 riastradh Exp $ */
/*-
* Copyright (c) 2013 The NetBSD Foundation, Inc.
@@ -128,6 +128,12 @@
} \
} while (0)
+#define ACCESS_ONCE(X) ({ \
+ typeof(X) __access_once_tmp = (X); \
+ __insn_barrier(); \
+ __access_once_tmp; \
+})
+
static inline int64_t
abs64(int64_t x)
{