From owner-svn-src-projects@FreeBSD.ORG Tue Sep 18 08:33:38 2012 Return-Path: Delivered-To: svn-src-projects@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 82F0B1065670; Tue, 18 Sep 2012 08:33:38 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from mail.zoral.com.ua (mx0.zoral.com.ua [91.193.166.200]) by mx1.freebsd.org (Postfix) with ESMTP id C7D6B8FC0C; Tue, 18 Sep 2012 08:33:37 +0000 (UTC) Received: from skuns.kiev.zoral.com.ua (localhost [127.0.0.1]) by mail.zoral.com.ua (8.14.2/8.14.2) with ESMTP id q8I8XbgE082313; Tue, 18 Sep 2012 11:33:37 +0300 (EEST) (envelope-from kostikbel@gmail.com) Received: from deviant.kiev.zoral.com.ua (kostik@localhost [127.0.0.1]) by deviant.kiev.zoral.com.ua (8.14.5/8.14.5) with ESMTP id q8I8XO56043450; Tue, 18 Sep 2012 11:33:24 +0300 (EEST) (envelope-from kostikbel@gmail.com) Received: (from kostik@localhost) by deviant.kiev.zoral.com.ua (8.14.5/8.14.5/Submit) id q8I8XOkh043449; Tue, 18 Sep 2012 11:33:24 +0300 (EEST) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: deviant.kiev.zoral.com.ua: kostik set sender to kostikbel@gmail.com using -f Date: Tue, 18 Sep 2012 11:33:24 +0300 From: Konstantin Belousov To: Attilio Rao Message-ID: <20120918083324.GX37286@deviant.kiev.zoral.com.ua> References: <201207301350.q6UDobCI099069@svn.freebsd.org> <201207301732.33474.jhb@freebsd.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="umhhH1MY3lvPZrwj" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) X-Virus-Scanned: clamav-milter 0.95.2 at skuns.kiev.zoral.com.ua X-Virus-Status: Clean X-Spam-Status: No, score=-4.0 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on skuns.kiev.zoral.com.ua Cc: Davide Italiano , src-committers@freebsd.org, John Baldwin , Jeff Roberson , Dimitry Andric , svn-src-projects@freebsd.org Subject: Re: svn commit: r238907 - projects/calloutng/sys/kern X-BeenThere: svn-src-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the src " projects" tree" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 18 Sep 2012 08:33:38 -0000 --umhhH1MY3lvPZrwj Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Sep 18, 2012 at 01:13:08AM +0100, Attilio Rao wrote: > diff --git a/sys/sys/cdefs.h b/sys/sys/cdefs.h > index 8224672..fc6a75f 100644 > --- a/sys/sys/cdefs.h > +++ b/sys/sys/cdefs.h > @@ -114,6 +114,13 @@ > #endif >=20 > /* > + * Compiler memory barriers, specific to gcc and clang. > + */ > +#if defined(__GNUC__) > +#define __compiler_membar() __asm __volatile(" " : : : "memor= y") > +#endif > + > +/* Traditionally, we do provide the fallback for non-GNUC compilers, by defining extern function with the compatible signature. In this case, the empty function just works for the purpose, although with higher overhead than the GNUC case. --umhhH1MY3lvPZrwj Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (FreeBSD) iEYEARECAAYFAlBYMdQACgkQC3+MBN1Mb4g3TACfSn6vAfoXsGD4n/EbkUUHWZIx 93IAnj5bMxUgI7FmdgvzyFsqMyVOvfCQ =jceA -----END PGP SIGNATURE----- --umhhH1MY3lvPZrwj--