From owner-cvs-all Thu Oct 11 11:36:10 2001 Delivered-To: cvs-all@freebsd.org Received: from mail12.speakeasy.net (mail12.speakeasy.net [216.254.0.212]) by hub.freebsd.org (Postfix) with ESMTP id 7C5E537B409 for ; Thu, 11 Oct 2001 11:36:02 -0700 (PDT) Received: (qmail 74807 invoked from network); 11 Oct 2001 18:36:01 -0000 Received: from unknown (HELO laptop.baldwin.cx) ([64.81.54.73]) (envelope-sender ) by mail12.speakeasy.net (qmail-ldap-1.03) with SMTP for ; 11 Oct 2001 18:36:01 -0000 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: <200110111821.f9BILwb78417@khavrinen.lcs.mit.edu> Date: Thu, 11 Oct 2001 11:35:27 -0700 (PDT) From: John Baldwin To: Garrett Wollman Subject: RE: cvs commit: src/sys/i386/include atomic.h Cc: cvs-all@FreeBSD.org, cvs-committers@FreeBSD.org Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On 11-Oct-01 Garrett Wollman wrote: > < > said: > >> of atomic_cmpset() that works on a Dual Pentium II won't work on the 386 >> because it will result in an illegal instruction fault since the 386 doesn't >> have cmpxchg. One workaround is what the run time linker does for its locks > > A better workaround is for the kernel to emulate the instruction. It > won't be fast, but it will work. Patches accepted. > -GAWollman -- 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 cvs-all" in the body of the message