svn commit: r339437 - stable/11/sys/amd64/include

Konstantin Belousov kib at FreeBSD.org
Fri Oct 19 00:44:07 UTC 2018


Author: kib
Date: Fri Oct 19 00:44:06 2018
New Revision: 339437
URL: https://svnweb.freebsd.org/changeset/base/339437

Log:
  MFC r339384:
  Add clwb().

Modified:
  stable/11/sys/amd64/include/cpufunc.h
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/sys/amd64/include/cpufunc.h
==============================================================================
--- stable/11/sys/amd64/include/cpufunc.h	Fri Oct 19 00:37:47 2018	(r339436)
+++ stable/11/sys/amd64/include/cpufunc.h	Fri Oct 19 00:44:06 2018	(r339437)
@@ -114,6 +114,13 @@ clflushopt(u_long addr)
 }
 
 static __inline void
+clwb(u_long addr)
+{
+
+	__asm __volatile("clwb %0" : : "m" (*(char *)addr));
+}
+
+static __inline void
 clts(void)
 {
 


More information about the svn-src-all mailing list