sleep command with armv6hf
Andrew Turner
andrew at fubar.geek.nz
Sat Apr 5 17:40:07 UTC 2014
On Sat, 5 Apr 2014 16:25:08 +0000
"Weiß, Jürgen" <weiss at uni-mainz.de> wrote:
> under armv6hf the sleep command gives
>
> sleep: nanosleep: Invalid argument
>
> Further investigations seem to indicate the following problem:
>
> sleep calls the function __aeabi_d2lz
>
> vmov r0, r1, d8
> bl __aeabi_d2lz
> mov r4, r0
> mov r5, r1
>
> with the argument in the r0/r1 registers. But the function
> in libgcc.a expects the argument in d0 (seems to be
> compiled with hardfloat as well).
Can you try the attached patch. It should fix the function to use the
slightly odd calling convention of the __aeabi_* functions.
Andrew
-------------- next part --------------
A non-text attachment was scrubbed...
Name: aeabi_d2lz.diff
Type: text/x-patch
Size: 350 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-arm/attachments/20140405/72c011fa/attachment.bin>
More information about the freebsd-arm
mailing list