From owner-freebsd-smp Thu Dec 7 14:23: 5 2000 From owner-freebsd-smp@FreeBSD.ORG Thu Dec 7 14:23:04 2000 Return-Path: Delivered-To: freebsd-smp@freebsd.org Received: from pcnet1.pcnet.com (pcnet1.pcnet.com [204.213.232.3]) by hub.freebsd.org (Postfix) with ESMTP id 7D66D37B400; Thu, 7 Dec 2000 14:23:03 -0800 (PST) Received: (from eischen@localhost) by pcnet1.pcnet.com (8.8.7/PCNet) id RAA11512; Thu, 7 Dec 2000 17:22:42 -0500 (EST) Date: Thu, 7 Dec 2000 17:22:42 -0500 (EST) From: Daniel Eischen To: John Baldwin Cc: Dan Eischen , smp@FreeBSD.org Subject: RE: Userland atomic assignments In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-smp@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Thu, 7 Dec 2000, John Baldwin wrote: > atomic_cmpset() can't be used because it dinks with interrupts in the i386 > case. Also, you would need to #define SMP so that the lock prefixes would be > compiled in for the x86 case. You are probably better off just using userland > mutexes. Also, not that atomic_set() does an or operation, whereas > atomic_store() does an actual assignment. I don't need cmpset operations, just atomic int32 and ptr assignments. The latter would be good enough to let me walk a simple list without having to take a lock. -- Dan Eischen To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-smp" in the body of the message