Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 10 Oct 2001 10:23:50 -0700 (PDT)
From:      John Polstra <jdp@polstra.com>
To:        John Baldwin <jhb@FreeBSD.org>
Cc:        ia64@FreeBSD.org, Doug Rabson <dfr@nlsystems.com>
Subject:   RE: rtld -- atomic ops
Message-ID:  <XFMail.011010102350.jdp@polstra.com>
In-Reply-To: <XFMail.011010101710.jhb@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
John Baldwin wrote:
> 
> One quick question.  Now that we have a MI atomic operation interface one can
> get from <machine/atomic.h> that includes atomic_cmpset_acq_int(),
> atomic_add_acq_int(), and atomic_add_rel_int(), why not use these instead of
> re-rolling the atomic operations each time?  I realize that do to the quirky
> nature of the 386, you would still have to have a hack for the x86 platform,
> but at least for 486+ and other arch's you could just use the pre-existent API
> so that we only have to code up atomic ops in one place.
> 
> Comments?

That would be great, as far as I'm concerned.  Note, the reader/writer
locks used by the dynamic linker require something resembling an
atomic compare and exchange operation.

John

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ia64" in the body of the message




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