svn commit: r253877 - in projects/atomic64/sys: amd64/include i386/include
Attilio Rao
attilio at freebsd.org
Fri Aug 2 14:39:14 UTC 2013
On Fri, Aug 2, 2013 at 2:20 AM, Jung-uk Kim <jkim at freebsd.org> wrote:
> Author: jkim
> Date: Fri Aug 2 00:20:04 2013
> New Revision: 253877
> URL: http://svnweb.freebsd.org/changeset/base/253877
>
> Log:
> Reimplement atomic operations on PDEs and PTEs in pmap.h. This change
> significantly reduces duplicate code. Also, it may improve and even correct
> some questionable implementations.
I think this is not the right way to do it, in particular the loadstore part.
What you should do is to implement atomic_readandclear_* with an
atomic_readandset_* (so taking a parameter as a set value) and then
use atomic_readandset_*() for PTE operations.
Attilio
--
Peace can only be achieved by understanding - A. Einstein
More information about the svn-src-projects
mailing list