[Bug 503185] Re: fails to build on armel/lucid
Dave Martin
Dave.Martin at arm.com
Mon Jan 18 12:04:16 UTC 2010
ARMv7 generally does not allow the PC to be used as a destination
register for random operations. The code will also not work in Thumb
because the "Thumb bit" in the return address (bottom bit of lr) is not
set properly.
The best way to fix this is to precompute the address of the kuser
helper code to call (in r3) and call it with BLX r3. This only works on
v5 and above; this is reasonable because the code won't build for Thumb
on ARMv4T anyway for various other reasons.
The attached patch attempts to do this when appropriate.
I will try to test it, but haven't been able to do so yet.
** Attachment added: "Patch to call the kuser helper functions in a Thumb-2 compatible way"
http://launchpadlibrarian.net/38032395/cr_atomic_arm.diff
--
fails to build on armel/lucid
https://bugs.launchpad.net/bugs/503185
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
--
ubuntu-bugs mailing list
ubuntu-bugs at lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
More information about the universe-bugs
mailing list