Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 27 Jul 2005 20:01:45 +0000 (UTC)
From:      John Baldwin <jhb@FreeBSD.org>
To:        src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/sys/arm/include atomic.h src/sys/sparc64/include cpufunc.h
Message-ID:  <200507272001.j6RK1jjA072124@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
jhb         2005-07-27 20:01:45 UTC

  FreeBSD src repository

  Modified files:
    sys/arm/include      atomic.h 
    sys/sparc64/include  cpufunc.h 
  Log:
  Add extra constraints to tell the compiler that the memory be modified
  in the arm __swp() and sparc64 casa() and casax() functions is actually
  being used as an input and output and not just the value of the register
  that points to the memory location.  This was the underlying source of
  the mbuf refcount problems on sparc64 a while back.  For arm this should be
  a nop because __swp() has a constraint to clobber all memory which can
  probably be removed now.
  
  Reviewed by:    alc, cognet
  MFC after:      1 week
  
  Revision  Changes    Path
  1.10      +4 -2      src/sys/arm/include/atomic.h
  1.21      +6 -4      src/sys/sparc64/include/cpufunc.h



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