User space atomic ops on ARMv5 and earlier
Posted Jan 13, 2009 19:39 UTC (Tue) by
npitre (subscriber, #5680)
In reply to:
User space atomic ops on ARMv5 and earlier by endecotp
Parent article:
ARM SoC launched with Linux support (Linux Devices)
NPTL support for ARM in glibc certainly does. I developed the kernel
part in collaboration with the person who did the glibc part.
As to gcc, I don't see any specific ARM support for the __sync_*
primitives, not even for ARMv6+ which has native instructions that
could be used for that purpose. However this should be easy to implement
following the PA model. Incidentally, the file gcc/config/pa/linux-atomic.c
contains this note:
/* Linux-specific atomic operations for PA Linux.
Copyright (C) 2008 Free Software Foundation, Inc.
Based on code contributed by CodeSourcery for ARM EABI Linux.
Modifications for PA Linux by Helge Deller <deller@gmx.de>
[...]
So maybe that support does exist somewhere already?
(
Log in to post comments)