From owner-freebsd-arch@FreeBSD.ORG Mon May 24 11:58:47 2004 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 116E916A4CF for ; Mon, 24 May 2004 11:58:46 -0700 (PDT) Received: from mail1.speakeasy.net (mail1.speakeasy.net [216.254.0.201]) by mx1.FreeBSD.org (Postfix) with ESMTP id CF68043D2D for ; Mon, 24 May 2004 11:58:46 -0700 (PDT) (envelope-from jhb@FreeBSD.org) Received: (qmail 26249 invoked from network); 24 May 2004 18:58:33 -0000 Received: from dsl027-160-063.atl1.dsl.speakeasy.net (HELO server.baldwin.cx) ([216.27.160.63]) (envelope-sender ) encrypted SMTP for ; 24 May 2004 18:58:33 -0000 Received: from 10.50.40.205 (gw1.twc.weather.com [216.133.140.1]) by server.baldwin.cx (8.12.11/8.12.11) with ESMTP id i4OIwSE3099802; Mon, 24 May 2004 14:58:28 -0400 (EDT) (envelope-from jhb@FreeBSD.org) From: John Baldwin To: Daniel Eischen Date: Mon, 24 May 2004 14:59:04 -0400 User-Agent: KMail/1.6 References: In-Reply-To: MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200405241459.04503.jhb@FreeBSD.org> X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on server.baldwin.cx cc: arch@FreeBSD.org cc: mtm@FreeBSD.org cc: Garance A Drosihn cc: Julian Elischer cc: freebsd-arch@FreeBSD.org Subject: Re: atomic reference counting primatives. X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 24 May 2004 18:58:47 -0000 On Monday 24 May 2004 10:50 am, Daniel Eischen wrote: > On Mon, 24 May 2004, John Baldwin wrote: > > atomic_cmpset() is an "official" primitive. The problem is that Mike is > > using an enum and assuming that all enum's are ints which is not > > necessarily true. The code should perhaps use an int with #define's > > instead to guarantee that the variable is an int and not a short, char, > > or long. > > You can't use atomic_cmpset() in userland on 386, so > if it is being used in libthr, the machine must be > checked to make sure it will work, otherwise should > fall back to something else... I'd be fine with it being a compile option to be honest. We already don't support 80386's out of the box since they need a custom kernel. I'd rather not pessimize world + dog for the 80386. -- John Baldwin <>< http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve" = http://www.FreeBSD.org