aboutsummaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorKonstantin Belousov <kib@FreeBSD.org>2018-10-16 17:00:42 +0000
committerKonstantin Belousov <kib@FreeBSD.org>2018-10-16 17:00:42 +0000
commit9d5d89b209e660c2fc55783cb14a5419a9af6098 (patch)
tree5bad667b4d94f91208f553b87516846dc1af9461 /sys
parent94036a2587d8c6a4f6f82529d3d3f1ec62a17910 (diff)
Notes
Diffstat (limited to 'sys')
-rw-r--r--sys/amd64/include/cpufunc.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/sys/amd64/include/cpufunc.h b/sys/amd64/include/cpufunc.h
index e04e50cfe19f9..c623ed4cf139b 100644
--- a/sys/amd64/include/cpufunc.h
+++ b/sys/amd64/include/cpufunc.h
@@ -116,6 +116,13 @@ clflushopt(u_long addr)
}
static __inline void
+clwb(u_long addr)
+{
+
+ __asm __volatile("clwb %0" : : "m" (*(char *)addr));
+}
+
+static __inline void
clts(void)
{