2 * libc/sysdeps/linux/nios2/vfork.S -- `vfork' syscall for linux/nios2
4 * Copyright (C) 2004 Microtronix Datacom Ltd
6 * This file is subject to the terms and conditions of the GNU Lesser
7 * General Public License. See the file COPYING.LIB in the main
8 * directory of this archive for more details.
10 * Written by Wentao Xu <wentao@microtronix.com>
16 #include <bits/errno.h>
17 #include <asm/unistd.h>
20 #define __NR_vfork __NR_fork /* uClinux-2.0 only has fork which is vfork */
26 .type __vfork,%function
29 movui r2, TRAP_ID_SYSCALL
33 bltu r8, r2, fix_errno
54 .size __vfork,.-__vfork
55 weak_alias(__vfork,vfork)
56 libc_hidden_weak(vfork)