2 * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
4 * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
7 #include <sys/syscall.h>
10 #define __NR_vfork __NR_fork /* uClinux-2.0 only has fork which is vfork */
19 .type __vfork,@function
22 movl %sp@+, %a1 /* save the return address for later */
23 movl IMM __NR_vfork,%d0
28 jmp %a1@ /* don't return, just jmp directly */
31 #ifndef __PIC__ /* needs handling as the other archs */
34 movl errno@GOT(%a5), %a0
38 jmp %a1@ /* don't return, just jmp directly */
40 .size __vfork,.-__vfork
41 weak_alias(__vfork,vfork)
42 libc_hidden_def(vfork)