Re: [Xenomai-core] Re: [patch] memory barriers in intr.c :: xnintr_lock/unlock()

2006-12-08 Thread Philippe Gerum
On Thu, 2006-12-07 at 00:03 +0100, Jan Kiszka wrote: > Dmitry Adamushko wrote: > > Hello, > > > > following the recent discussion with Jan, here is a patch that aims at > > allowing xnintr_lock/unlock actually do what they were supposed to do in > > the first instance. > > > > [...] > > > > >

[Xenomai-core] Re: [patch] memory barriers in intr.c :: xnintr_lock/unlock()

2006-12-06 Thread Jan Kiszka
Dmitry Adamushko wrote: > Hello, > > following the recent discussion with Jan, here is a patch that aims at > allowing xnintr_lock/unlock actually do what they were supposed to do in > the first instance. > [...] > > --- xenomai/ksrc/nucleus/intr-old.c 2006-11-12 00:17:56.0 +0100 > +

[Xenomai-core] Re: [patch] memory barriers in intr.c :: xnintr_lock/unlock()

2006-11-19 Thread Dmitry Adamushko
I see two paths now: A) If we go for atomic_inc/dec with such locking service, xnarch_memory_barrier__after_atomic_inc & friends will be needed anyway and could be already introduced now. Yes, this would be better. Any thoughts? I have already sent once to you the message, but I do it n

[Xenomai-core] Re: [patch] memory barriers in intr.c :: xnintr_lock/unlock()

2006-11-17 Thread Jan Kiszka
Dmitry Adamushko wrote: > ... > In case of linux, smp_mb__after_atomic_inc() and > smp_mb__before_atomic_dec() > would do the job. But so far, I decided not to add something like > xnarch_memory_barrier__after_atomic_inc() :) , provided that both seem to > end up being either mb() or barrier() at t