Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 19 Oct 2018 00:44:06 +0000 (UTC)
From:      Konstantin Belousov <kib@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org
Subject:   svn commit: r339437 - stable/11/sys/amd64/include
Message-ID:  <201810190044.w9J0i6Vn036921@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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)
 {
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201810190044.w9J0i6Vn036921>