2 * ia64 specific vfork syscall
4 * Written By: Martin Hicks <mort@wildopensource.com>
8 /* This syscall is a special case of the clone syscall */
9 #include <asm/unistd.h>
10 #include <asm/signal.h>
11 #include <klibc/archsys.h>
13 /* These are redefined here because linux/sched.h isn't safe for
16 #define CLONE_VM 0x00000100 /* set if VM shared between processes */
17 #define CLONE_VFORK 0x00004000 /* set if parent wants the child to wake it up on exit */
19 /* pid_t vfork(void) */
20 /* Implemented as clone(CLONE_VFORK | CLONE_VM | SIGCHLD, 0) */
26 alloc r2=ar.pfs,0,0,2,0
28 mov out0=CLONE_VM|CLONE_VFORK|SIGCHLD
31 break 0x100000 // Do the syscall