From owner-freebsd-current@FreeBSD.ORG Thu Aug 5 05:04:52 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7DC9416A4CE for ; Thu, 5 Aug 2004 05:04:52 +0000 (GMT) Received: from robbins.dropbear.id.au (184.a.005.mel.iprimus.net.au [210.50.40.184]) by mx1.FreeBSD.org (Postfix) with ESMTP id CB87B43D53 for ; Thu, 5 Aug 2004 05:04:48 +0000 (GMT) (envelope-from tim@robbins.dropbear.id.au) Received: by robbins.dropbear.id.au (Postfix, from userid 1000) id BA2D04208; Thu, 5 Aug 2004 15:04:22 +1000 (EST) Date: Thu, 5 Aug 2004 15:04:22 +1000 From: Tim Robbins To: freebsd-current@freebsd.org Message-ID: <20040805050422.GA41201@cat.robbins.dropbear.id.au> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.1i Subject: Atomic operations on i386/amd64 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 05 Aug 2004 05:04:52 -0000 Is there any particular reason why atomic_load_acq_*() and atomic_store_rel_*() are implemented with CMPXCHG and XCHG instead of MOV on i386/amd64 UP? Also, could we use MFENCE/LFENCE/SFENCE in combination with MOV on SMP systems instead of LOCK CMPXCHG / (implied LOCK) XCHG? Tim