From owner-cvs-all Thu Oct 11 10:49:16 2001 Delivered-To: cvs-all@freebsd.org Received: from InterJet.elischer.org (c421509-a.pinol1.sfba.home.com [24.7.86.9]) by hub.freebsd.org (Postfix) with ESMTP id 52C3037B409; Thu, 11 Oct 2001 10:49:06 -0700 (PDT) Received: from localhost (localhost.elischer.org [127.0.0.1]) by InterJet.elischer.org (8.9.1a/8.9.1) with ESMTP id LAA37149; Thu, 11 Oct 2001 11:51:34 -0700 (PDT) Date: Thu, 11 Oct 2001 11:51:32 -0700 (PDT) From: Julian Elischer To: John Baldwin Cc: cvs-all@FreeBSD.org, cvs-committers@FreeBSD.org Subject: RE: cvs commit: src/sys/i386/include atomic.h In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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 can you point to a single '386 based SMP machine that we will ever support? On Mon, 8 Oct 2001, John Baldwin wrote: > > On 08-Oct-01 John Baldwin wrote: > > jhb 2001/10/08 13:58:25 PDT > > > > Modified files: > > sys/i386/include atomic.h > > Log: > > Allow atomic ops to be somewhat safely used in userland. We always use > > lock prefixes in the userland case so that the binaries will work on both > > SMP and UP systems. > > atomic_cmpset(), atomic_store(), and atomic_load() are still problematic as > there are 386 versions which are not SMP safe and non-386 versions which are > SMP safe. A userland sourc file that uses atomic ops on x86 will have to > define I386_CPU if it wishes to compile the 386 versions, otherwise it will use > the 486+ and SMP safe versions. This just means that if any userland > applications (such as possibly the new KSE thread library) use these atomic > ops, it will have to have separate versions for 386's and everything else in > the x86 family. > > -- > > 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