Date: Tue, 1 Jun 2004 13:32:25 -0400 From: John Baldwin <jhb@FreeBSD.org> To: Daniel Eischen <eischen@vigrid.com> Cc: Marius Strobl <marius@alchemy.franken.de> Subject: Re: cvs commit: src/sys/sparc64/include atomic.h Message-ID: <200406011332.25152.jhb@FreeBSD.org> In-Reply-To: <Pine.GSO.4.10.10405281500370.26051-100000@pcnet5.pcnet.com> References: <Pine.GSO.4.10.10405281500370.26051-100000@pcnet5.pcnet.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Friday 28 May 2004 03:02 pm, Daniel Eischen wrote: > On Fri, 28 May 2004, Scott Long wrote: > > John Baldwin wrote: > > > On Friday 28 May 2004 04:38 am, Daniel Eischen wrote: > > >>On Fri, 28 May 2004, Mike Makonnen wrote: > > >>>Thanks. I'll change those enums to integers soon (others have > > >>> suggested it as well). It's just that I find them so convenient when > > >>> debugging. > > >> > > >>And the use of atomic_cmpset_foo() isn't going to work on > > >>80386 since it doesn't have cmpxchgl. <machine/atomic.h> > > >>will try to use cli instead. > > > > > > I'd say just punt and suggest that 80386 machines use libc_r. > > > > I think that this is a reasonable suggestion. libc_r likely has a > > longer lifespan than 80386 at this point (hard to believe that the > > 80386 has been out for nearly 20 years!). > > Works for me. That makes it easier for libpthread as well since > we'd like to use it also. We avoided using it and used atomic > swaps instead. By all means, please feel free to use atomic_cmpset() in libpthread. -- 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?200406011332.25152.jhb>