dbus 1.2.16
Lennart Poettering
mzqohf at 0pointer.de
Wed Jul 22 14:43:20 PDT 2009
On Wed, 22.07.09 23:34, Thiago Macieira (thiago at kde.org) wrote:
> Lennart Poettering wrote:
> >On Thu, 16.07.09 08:18, Schmottlach, Glenn (glenn.schmottlach at harman.com)
> wrote:
> >> So this assumption is that the GCC intrinsic functions for atomic
> >> operations are valid on all other platforms (e.g. ARM, SH4, PPC,
> >> etc...) but not (apparently) for i386 class processors and
> >> below. Therefore, has long as GCC generates good code for the
> >> processors I'm interested in (ARM at the moment), all is good,
> >> right?
> >
> >D-Bus didn't support atomic ops on ARM before, however with my __sync
> >patch it now will if you have a recent enough gcc that can do it for
> >ARM.
>
> Not all ARM boards have atomic instructions. Some of them require
> mediation by the kernel. I have no idea if the GCC __sync stuff uses them.
GCC seems to support __kernel_cmpxchg:
http://gcc.gnu.org/ml/gcc-patches/2008-07/msg00025.html
Lennart
--
Lennart Poettering Red Hat, Inc.
lennart [at] poettering [dot] net
http://0pointer.net/lennart/ GnuPG 0x1A015CC4
More information about the dbus
mailing list