Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 03 Oct 2000 01:19:02 -0700 (PDT)
From:      John Baldwin <jhb@FreeBSD.org>
To:        Jan Mikkelsen <janm@transactionsite.com>
Cc:        Kevin Mills <kmills@aventail.com>, FreeBSD Hackers <freebsd-hackers@FreeBSD.org>
Subject:   Re: atomic operations
Message-ID:  <XFMail.001003011902.jhb@FreeBSD.org>
In-Reply-To: <001201c02d0f$790c9140$0901a8c0@haym.transactionsite.com>

next in thread | previous in thread | raw e-mail | index | archive | help

On 03-Oct-00 Jan Mikkelsen wrote:
> John Baldwin <jhb@FreeBSD.org> 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 <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 freebsd-hackers" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?XFMail.001003011902.jhb>