From owner-freebsd-alpha Fri Dec 15 10:34:33 2000 From owner-freebsd-alpha@FreeBSD.ORG Fri Dec 15 10:34:31 2000 Return-Path: Delivered-To: freebsd-alpha@freebsd.org Received: from mail.du.gtn.com (mail.du.gtn.com [194.77.9.57]) by hub.freebsd.org (Postfix) with ESMTP id 7177737B400 for ; Fri, 15 Dec 2000 10:34:30 -0800 (PST) Received: from mail.cicely.de (cicely.de [194.231.9.142]) by mail.du.gtn.com (8.11.0.Beta3/8.11.0.Beta3) with ESMTP id eBFIYR207239 (using TLSv1/SSLv3 with cipher EDH-RSA-DES-CBC3-SHA (168 bits) verified OK) for ; Fri, 15 Dec 2000 19:34:29 +0100 (MET) Received: from cicely5.cicely.de (cicely5.cicely.de [fec0:0:0:104::5]) by mail.cicely.de (8.11.0.Beta1/8.11.0.Beta1) with ESMTP id eBFIYmm26127 (using TLSv1/SSLv3 with cipher EDH-RSA-DES-CBC3-SHA (168 bits) verified NO) for ; Fri, 15 Dec 2000 19:34:50 +0100 (CET) Received: (from ticso@localhost) by cicely5.cicely.de (8.11.1/8.11.1) id eBFIYhl62106 for freebsd-alpha@freebsd.org; Fri, 15 Dec 2000 19:34:43 +0100 (CET) (envelope-from ticso) Date: Fri, 15 Dec 2000 19:34:43 +0100 From: Bernd Walter To: freebsd-alpha@freebsd.org Subject: mb and wmb in atomic_ Message-ID: <20001215193443.B62048@cicely5.cicely.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0.1i Sender: owner-freebsd-alpha@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Why are the mb and wmb operations needed in the atomic_ functions? If I understood it correctly the locked operations are in synced with others CPUs and there is no memory operation beside the variable itself. -- B.Walter COSMO-Project http://www.cosmo-project.de ticso@cicely.de Usergroup info@cosmo-project.de To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-alpha" in the body of the message