Mirror of the lttng-dev mailing list
 help / color / mirror / Atom feed
From: paulmck@linux.vnet.ibm.com (Paul E. McKenney)
Subject: [ltt-dev] [PATCH 3/4] Add native ARM port for armv7l
Date: Wed, 16 Jun 2010 14:32:04 -0700	[thread overview]
Message-ID: <20100616213204.GH2457@linux.vnet.ibm.com> (raw)
In-Reply-To: <20100616212315.GB12980@Krystal>

On Wed, Jun 16, 2010 at 05:23:15PM -0400, Mathieu Desnoyers wrote:
> * Paul E. McKenney (paulmck at linux.vnet.ibm.com) wrote:
> > Add native support for armv7l.  Other variants of ARM will likely require
> > separate ports.
> > 
> > Signed-off-by: Paul E. McKenney <paulmck at linux.vnet.ibm.com>
> > ---
> >  configure.ac               |    4 +++
> >  urcu/arch_armv7l.h         |   59 ++++++++++++++++++++++++++++++++++++++++++++
> >  urcu/uatomic_arch_armv7l.h |   48 +++++++++++++++++++++++++++++++++++

[ . . . ]

> > +#ifdef __cplusplus
> > +extern "C" {
> > +#endif 
> > +
> > +/* xchg */
> > +#define uatomic_xchg(addr, v) __sync_lock_test_and_set(addr, v)
> > +
> > +/* cmpxchg */
> > +#define uatomic_cmpxchg(addr, old, _new) \
> > +	__sync_val_compare_and_swap(addr, old, _new)
> > +
> > +/* uatomic_add_return */
> > +#define uatomic_add_return(addr, v) __sync_add_and_fetch(addr, v)
> 
> So, do we end up trusting that gcc got the memory barriers right in the ARM
> __sync_() primitives ? That sounds unlikely.
> 
> I'd vote for surrounding these primitives with smp_mb().

On ARM, my current belief is that the primitives other than
__sync_synchronize() and __sync_lock_release() are set up correctly.

However, I must defer to Paolo and Uli on this.

							Thanx, Paul

> Thanks,
> 
> Mathieu
> 
> > +
> > +#ifdef __cplusplus 
> > +}
> > +#endif
> > +
> > +#include <urcu/uatomic_generic.h>
> > +
> > +#endif /* _URCU_ARCH_UATOMIC_ARMV7L_H */
> > -- 
> > 1.7.0.6
> > 
> 
> -- 
> Mathieu Desnoyers
> Operating System Efficiency R&D Consultant
> EfficiOS Inc.
> http://www.efficios.com




  reply	other threads:[~2010-06-16 21:32 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-06-16 21:04 [ltt-dev] [PATCH 0/4] Add gcc primitives, ia64 support, ARMv7L support, and kill unknown Paul E. McKenney
2010-06-16 21:05 ` [ltt-dev] [PATCH 1/4] Add header files supporting gcc __sync_ primitives Paul E. McKenney
2010-06-16 21:05 ` [ltt-dev] [PATCH 2/4] Add ia64 architecture based on gcc primitives Paul E. McKenney
2010-06-16 21:05 ` [ltt-dev] [PATCH 3/4] Add native ARM port for armv7l Paul E. McKenney
2010-06-16 21:23   ` Mathieu Desnoyers
2010-06-16 21:32     ` Paul E. McKenney [this message]
2010-06-16 23:57       ` Mathieu Desnoyers
2010-06-17  0:51         ` Paul E. McKenney
2010-06-17  1:37           ` Mathieu Desnoyers
2010-06-17  4:43             ` Paul E. McKenney
2010-06-16 21:05 ` [ltt-dev] [PATCH 4/4] Force build failure on unknown architectures Paul E. McKenney
2010-06-17 22:11 [ltt-dev] [PATCH 0/4] v3: Add gcc primitives, ia64 support, ARMv7L support, and kill unknown Paul E. McKenney
2010-06-17 22:12 ` [ltt-dev] [PATCH 3/4] Add native ARM port for armv7l Paul E. McKenney

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20100616213204.GH2457@linux.vnet.ibm.com \
    --to=paulmck@linux.vnet.ibm.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox