From owner-freebsd-hackers Tue Oct 3 1:19: 1 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from mail.rdc1.va.home.com (ha1.rdc1.va.home.com [24.2.32.66]) by hub.freebsd.org (Postfix) with ESMTP id 56C0837B502 for ; Tue, 3 Oct 2000 01:18:59 -0700 (PDT) Received: from laptop.baldwin.cx ([24.6.244.187]) by mail.rdc1.va.home.com (InterMail vM.4.01.03.00 201-229-121) with ESMTP id <20001003081858.NIDU26082.mail.rdc1.va.home.com@laptop.baldwin.cx>; Tue, 3 Oct 2000 01:18:58 -0700 Content-Length: 829 Message-ID: X-Mailer: XFMail 1.4.0 on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: <001201c02d0f$790c9140$0901a8c0@haym.transactionsite.com> Date: Tue, 03 Oct 2000 01:19:02 -0700 (PDT) From: John Baldwin To: Jan Mikkelsen Subject: Re: atomic operations Cc: Kevin Mills , Cc: Kevin Mills , FreeBSD Hackers Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On 03-Oct-00 Jan Mikkelsen wrote: > John Baldwin 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 -- 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