From owner-svn-src-stable-8@FreeBSD.ORG Thu Aug 30 11:00:01 2012 Return-Path: Delivered-To: svn-src-stable-8@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 75C861065670; Thu, 30 Aug 2012 11:00:01 +0000 (UTC) (envelope-from kib@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 59DB88FC17; Thu, 30 Aug 2012 11:00:01 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id q7UB01qQ029047; Thu, 30 Aug 2012 11:00:01 GMT (envelope-from kib@svn.freebsd.org) Received: (from kib@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id q7UB01CP029040; Thu, 30 Aug 2012 11:00:01 GMT (envelope-from kib@svn.freebsd.org) Message-Id: <201208301100.q7UB01CP029040@svn.freebsd.org> From: Konstantin Belousov Date: Thu, 30 Aug 2012 11:00:01 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-8@freebsd.org X-SVN-Group: stable-8 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r239903 - in stable/8/sys: amd64/include i386/include X-BeenThere: svn-src-stable-8@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for only the 8-stable src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 Aug 2012 11:00:01 -0000 Author: kib Date: Thu Aug 30 11:00:00 2012 New Revision: 239903 URL: http://svn.freebsd.org/changeset/base/239903 Log: MFC r238972: Add lfence(). Modified: stable/8/sys/amd64/include/cpufunc.h stable/8/sys/i386/include/cpufunc.h Directory Properties: stable/8/sys/ (props changed) Modified: stable/8/sys/amd64/include/cpufunc.h ============================================================================== --- stable/8/sys/amd64/include/cpufunc.h Thu Aug 30 10:38:41 2012 (r239902) +++ stable/8/sys/amd64/include/cpufunc.h Thu Aug 30 11:00:00 2012 (r239903) @@ -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/8/sys/i386/include/cpufunc.h ============================================================================== --- stable/8/sys/i386/include/cpufunc.h Thu Aug 30 10:38:41 2012 (r239902) +++ stable/8/sys/i386/include/cpufunc.h Thu Aug 30 11:00:00 2012 (r239903) @@ -146,6 +146,13 @@ cpu_mwait(int extensions, int hints) } static __inline void +lfence(void) +{ + + __asm __volatile("lfence" : : : "memory"); +} + +static __inline void mfence(void) {