Mike Frysinger wrote:
> > It's easy but you need an asm wrapper for each architecture, as the
> > parent must not touch the stack before calling _exit.
> 
> i'm aware of this which is why i used INTERNAL_SYSCALL() rather than calling 
> the C library functions.  those expand into the appropriate assembly for 
> making a system call.

I only see INTERNAL_SYSCALL on ARM, but perhaps I'm looking at an old
version of uclibc?

You have to test the result of clone() before calling _exit().  How do
you guarantee the compiler inserts no memory writes in that sequence
using just INTERNAL_SYSCALL on all architectures?

-- Jamie
_______________________________________________
uClinux-dev mailing list
uClinux-dev@uclinux.org
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by uclinux-dev@uclinux.org
To unsubscribe see:
http://mailman.uclinux.org/mailman/options/uclinux-dev

Reply via email to