Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 12 Oct 2009 16:11:25 +0000 (UTC)
From:      Attilio Rao <attilio@FreeBSD.org>
To:        cvs-src-old@freebsd.org
Subject:   cvs commit: src/sys/amd64/include atomic.h src/sys/i386/include atomic.h
Message-ID:  <200910121611.n9CGBgQP043055@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
attilio     2009-10-12 16:11:25 UTC

  FreeBSD src repository

  Modified files:        (Branch: RELENG_7)
    sys/amd64/include    atomic.h 
    sys/i386/include     atomic.h 
  Log:
  SVN rev 197986 on 2009-10-12 16:11:25Z by attilio
  
  MFC r197803, r197824, r197910:
  Per their definition, atomic instructions used in conjuction with
  memory barriers should also ensure that the compiler doesn't reorder paths
  where they are used.  GCC, however, does that aggressively, even in
  presence of volatile operands.  The most reliable way GCC offers for avoid
  instructions reordering is clobbering "memory".
  Not all our memory barriers, right now, clobber memory for GCC-like
  compilers.
  Fix these cases.
  
  Revision  Changes    Path
  1.44.2.2  +57 -41    src/sys/amd64/include/atomic.h
  1.47.2.2  +57 -41    src/sys/i386/include/atomic.h



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