On 03-Oct-00 Jan Mikkelsen wrote:
> John Baldwin <[EMAIL PROTECTED]> wrote:
>>Uh, there is no xaddl instruction in the x86 instruction set.
>
> It was introduced in the '486. I've been using it for some years now, so I
> am confident of its existence.
Freaky. Time for a new atomic op perhaps.
> There shouldn't be a need for a loop like the one you describe for a simple
> atomic increment.
The trick is that I want to increment and read at the same time.
> I'm pretty new to FreeBSD: what is changing in -current which alters the
> behaviour of your code?
atomic_cmpset_* don't exist in stable, they are part of SMPng.
> Jan Mikkelsen
--
John Baldwin <[EMAIL PROTECTED]> -- 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 [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message