Re: cvs commit: src/sys/alpha/include atomic.h src/sys/i386/incl

[ Available lists | Index of cvs-all | Month of Oct 2000 | Week of 5 Oct 2000 | Raw email | View thread | Wrap long lines | Reply | Tag ]
From
John Baldwin <jhb@FreeBSD.org>
Date
5 Oct 2000 16:34:02
Subject
Re: cvs commit: src/sys/alpha/include atomic.h src/sys/i386/incl
Message-ID
XFMail.001005163400.jhb@FreeBSD.org

In reply to
Replies

[ Hide this part ]
 
On 05-Oct-00 Mike Smith wrote:
>> jhb 2000/10/05 15:19:50 PDT
>>
>> Modified files:
>> sys/alpha/include atomic.h
>> sys/i386/include atomic.h
>> Log:
>> Add atomic_readandclear_int and atomic_readandclear_long.
>
> Um, isn't this just exchange-with-zero?

That's one way of implementing it, yes. That is not the method used by the
alpha, however. I chose the name due to prior existence. The alpha
already had an atomic_readandclear_int, albeit buried in the ipl code.
The x86 had a similar loadandclear() in cpufunc.h

--

John Baldwin <jhb@FreeBSD.org> -- http://www.FreeBSD.org/~jhb/
PGP Key: http://www.baldwin.cx/~john/pgpkey.asc
"Power Users Use the Power to Serve!" - http://www.FreeBSD.org/


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message



Elapsed time: 0.099 seconds