Re: ARMv5 and atomic operations

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 23 April 2012 14:41, Brendan Conoboy <blc@xxxxxxxxxx> wrote:
> On 04/22/2012 07:34 PM, Chris Tyler wrote:
>>
>> What are some examples of these?
>
>
> First is jemalloc which now has a not-entirely satisfactory patch in place.
>  The one provoking this email is openmpi.  It's wanting, but missing, dmb,
> ldrex{,d}, strex{,d}.  There are others.  Basically when you see a package
> working on armv7hl but failing on armv5tel there's a good chance it's due to
> missing instructions.

Hi Brendan.  ARMv5 and earlier has SWB while ARMv6 and later has the
much better LDREX family.  You run into trouble when the package uses
inline assembler and assumes a particular architecture.

I recommend using the GCC sync builtins[1] as they'll generate the
right instructions for the architecture and fall back to the kernel
helpers when needed.  We've done similar in Linaro with the ARMv6 to
Thumb-2 transition.

-- Michael
[1] http://gcc.gnu.org/onlinedocs/gcc/_005f_005fsync-Builtins.html
_______________________________________________
arm mailing list
arm@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/arm



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux ARM (Vger)]     [Linux ARM]     [ARM Kernel]     [Fedora User Discussion]     [Older Fedora Users Discussion]     [Fedora Advisory Board]     [Fedora Security]     [Fedora Maintainers]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [ATA RAID]     [Fedora Marketing]     [Fedora Mentors]     [Fedora Package Announce]     [Fedora Package Review]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Coolkey]     [Yum Users]     [Tux]     [Yosemite News]     [Linux Apps]     [KDE Users]     [Fedora Tools]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]

Powered by Linux