From owner-freebsd-current@FreeBSD.ORG Fri Jul 29 03:29:47 2005 Return-Path: X-Original-To: freebsd-current@freebsd.org 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 0DFCF16A41F; Fri, 29 Jul 2005 03:29:47 +0000 (GMT) (envelope-from rodrigc@crodrigues.org) Received: from sccrmhc12.comcast.net (sccrmhc12.comcast.net [204.127.202.56]) by mx1.FreeBSD.org (Postfix) with ESMTP id 145AB43D48; Fri, 29 Jul 2005 03:29:45 +0000 (GMT) (envelope-from rodrigc@crodrigues.org) Received: from c-66-30-114-143.hsd1.ma.comcast.net ([66.30.114.143]) by comcast.net (sccrmhc12) with ESMTP id <20050729032945012006d7d1e>; Fri, 29 Jul 2005 03:29:45 +0000 Received: from c-66-30-114-143.hsd1.ma.comcast.net (localhost.127.in-addr.arpa [127.0.0.1]) by c-66-30-114-143.hsd1.ma.comcast.net (8.13.4/8.13.1) with ESMTP id j6T3TjF3014926; Thu, 28 Jul 2005 23:29:45 -0400 (EDT) (envelope-from rodrigc@c-66-30-114-143.hsd1.ma.comcast.net) Received: (from rodrigc@localhost) by c-66-30-114-143.hsd1.ma.comcast.net (8.13.4/8.13.1/Submit) id j6T3TjgW014925; Thu, 28 Jul 2005 23:29:45 -0400 (EDT) (envelope-from rodrigc) Date: Thu, 28 Jul 2005 23:29:45 -0400 From: Craig Rodrigues To: Daniel Eischen Message-ID: <20050729032945.GA14881@crodrigues.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.9i Cc: freebsd-current@freebsd.org, Giorgos Keramidas , davidxu@freebsd.org Subject: Re: libthr & atomic_xxx ops X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 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: Fri, 29 Jul 2005 03:29:47 -0000 On Thu, Jul 28, 2005 at 11:12:02PM -0400, Daniel Eischen wrote: > Hmm, I guess it's no longer the above, but: > > atomic_store_rel_ptr(volatile void *p, uintptr_t v); > > This doesn't seem right. uintptr_t is just __uint32_t (on 32-bit archs). > It seems more intuitive to use a void * since you want to play with > pointers. John Baldwin changed these functions to use uintptr_t instead of void *: http://lists.freebsd.org/pipermail/cvs-src/2005-July/049567.html -- Craig Rodrigues rodrigc@crodrigues.org