This is the mail archive of the newlib@sourceware.org mailing list for the newlib project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [uClinux-dev] _vfork libc implementation on ARM


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]