Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 30 Aug 2012 10:38:42 +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-9@freebsd.org
Subject:   svn commit: r239902 - in stable/9/sys: amd64/include i386/include
Message-ID:  <201208301038.q7UAcgrj024827@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: kib
Date: Thu Aug 30 10:38:41 2012
New Revision: 239902
URL: http://svn.freebsd.org/changeset/base/239902

Log:
  MFC r238972:
  Add lfence().

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

Modified: stable/9/sys/amd64/include/cpufunc.h
==============================================================================
--- stable/9/sys/amd64/include/cpufunc.h	Thu Aug 30 10:23:27 2012	(r239901)
+++ stable/9/sys/amd64/include/cpufunc.h	Thu Aug 30 10:38:41 2012	(r239902)
@@ -274,6 +274,13 @@ outw(u_int port, u_short data)
 }
 
 static __inline void
+lfence(void)
+{
+
+	__asm __volatile("lfence" : : : "memory");
+}
+
+static __inline void
 mfence(void)
 {
 

Modified: stable/9/sys/i386/include/cpufunc.h
==============================================================================
--- stable/9/sys/i386/include/cpufunc.h	Thu Aug 30 10:23:27 2012	(r239901)
+++ stable/9/sys/i386/include/cpufunc.h	Thu Aug 30 10:38:41 2012	(r239902)
@@ -148,6 +148,13 @@ cpu_mwait(u_long extensions, u_int hints
 }
 
 static __inline void
+lfence(void)
+{
+
+	__asm __volatile("lfence" : : : "memory");
+}
+
+static __inline void
 mfence(void)
 {
 



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