PING Re: [PATCH, ARM] Atomic builtins using kernel helpers for Linux/EABI
Andrew Haley
aph@redhat.com
Wed Oct 29 13:52:00 GMT 2008
Julian Brown wrote:
> Hi,
>
> This patch implements the atomic builtins described at:
>
> http://gcc.gnu.org/onlinedocs/gcc-4.3.0/gcc/Atomic-Builtins.html
>
> for ARM EABI Linux. This implementation uses the kernel helpers
> __kernel_cmpxchg and __kernel_dmb, and so should work on any
> architecture which supports those. (More-efficient versions are possible
> using ldrex/strex on architectures >=v6, but those are not written yet.)
>
> Atomic operations are provided for data sizes of 1, 2 and 4 bytes (but
> not 8 bytes). The implementation uses actual functions
> (__sync_fetch_and_add_2, etc.) rather than expanding code inline.
>
> Tested with cross to arm-none-linux-gnueabi, and with some additional
> hand-written tests which hopefully exercised the atomicity of the
> operations sufficiently.
>
> OK for mainline?
http://gcc.gnu.org/ml/gcc-patches/2008-07/msg00025.html
What happened to this?
Andrew.
More information about the Gcc-patches
mailing list