cvs commit: src/sys/arm/include atomic.h src/sys/sparc64/include cpufunc.h

John Baldwin jhb at FreeBSD.org
Wed Jul 27 20:01:45 GMT 2005


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


More information about the cvs-src mailing list