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

Olivier Houchard cognet at FreeBSD.org
Tue Nov 27 14:12:06 PST 2007


cognet      2007-11-27 22:12:06 UTC

  FreeBSD src repository

  Modified files:
    sys/arm/include      atomic.h 
  Log:
  In atomic_fetchadd_32(), do not blindly increase the value of %3.
  It should just contain the value we want to add, as if we're interrupted
  between the add and the str, we will restart from the beginning. Just use
  a register we can scratch instead.
  
  MFC After:      1 week
  
  Revision  Changes    Path
  1.22      +3 -2      src/sys/arm/include/atomic.h


More information about the cvs-src mailing list