Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 18 Sep 2012 11:33:24 +0300
From:      Konstantin Belousov <kostikbel@gmail.com>
To:        Attilio Rao <attilio@freebsd.org>
Cc:        Davide Italiano <davide@freebsd.org>, src-committers@freebsd.org, John Baldwin <jhb@freebsd.org>, Jeff Roberson <jeff@freebsd.org>, Dimitry Andric <dim@freebsd.org>, svn-src-projects@freebsd.org
Subject:   Re: svn commit: r238907 - projects/calloutng/sys/kern
Message-ID:  <20120918083324.GX37286@deviant.kiev.zoral.com.ua>
In-Reply-To: <CAJ-FndCRg0UCThFkatp=tw7rUWWCvhsApLE=iztLpxpGBC1F9w@mail.gmail.com>
References:  <201207301350.q6UDobCI099069@svn.freebsd.org> <CAJ-FndBj8tpC_BJXs_RH8sG2TBG8yA=Lxu3-GTVT9Ap_zOCuVQ@mail.gmail.com> <CAJ-FndDnO7wjnWPV0tTu%2BUGHjsxa3YDarMxmyei3ZmjLAFvRkQ@mail.gmail.com> <201207301732.33474.jhb@freebsd.org> <CAJ-FndD5EO12xsWOAe6u0EvX00q33wxO4OivnGjzj0=T2Oe8uA@mail.gmail.com> <CAJ-FndCRg0UCThFkatp=tw7rUWWCvhsApLE=iztLpxpGBC1F9w@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help

--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--



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