Date: Tue, 27 Nov 2007 22:12:06 +0000 (UTC) From: Olivier Houchard <cognet@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/arm/include atomic.h Message-ID: <200711272212.lARMC6tD005928@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200711272212.lARMC6tD005928>
