Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 24 May 2004 14:59:04 -0400
From:      John Baldwin <jhb@FreeBSD.org>
To:        Daniel Eischen <eischen@vigrid.com>
Cc:        freebsd-arch@FreeBSD.org
Subject:   Re: atomic reference counting primatives.
Message-ID:  <200405241459.04503.jhb@FreeBSD.org>
In-Reply-To: <Pine.GSO.4.10.10405241046510.10647-100000@pcnet5.pcnet.com>
References:  <Pine.GSO.4.10.10405241046510.10647-100000@pcnet5.pcnet.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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 <jhb@FreeBSD.org>  <><  http://www.FreeBSD.org/~jhb/
"Power Users Use the Power to Serve"  =  http://www.FreeBSD.org



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200405241459.04503.jhb>