[uClinux-dev] _vfork libc implementation on ARM

Shaun Jackman sjackman@gmail.com
Thu May 4 17:29:00 GMT 2006


On 4/29/06, David McCullough <david_mccullough@au.securecomputing.com> wrote:
> Have a look at uClibc/glibc is the best bet.  Looks something like this:
>
>         vfork:
>                 swi     __NR_vfork
>                 ...

I'm in doing something a little different than usual, though. I'm
running a Thumb user-space, and the system call number is passed in
$r7. The ABI says $r7 is saved by the callee. The callee (vfork) can't
use the stack to save the register. I was thinking of saving $r7 in
$r2 or $r3, which should be preserved through the swi by Linux.

Cheers,
Shaun


More information about the Newlib mailing list