long sys_fork(void)
{
- return do_fork(SIGCHLD, UPT_SP(¤t->thread.regs.regs),
+ return do_fork(SIGCHLD, 0,
¤t->thread.regs, 0, NULL, NULL);
}
long sys_vfork(void)
{
- return do_fork(CLONE_VFORK | CLONE_VM | SIGCHLD,
- UPT_SP(¤t->thread.regs.regs),
+ return do_fork(CLONE_VFORK | CLONE_VM | SIGCHLD, 0,
¤t->thread.regs, 0, NULL, NULL);
}
long sys_clone(unsigned long clone_flags, unsigned long newsp,
void __user *parent_tid, void __user *child_tid)
{
- if (!newsp)
- newsp = UPT_SP(¤t->thread.regs.regs);
-
return do_fork(clone_flags, newsp, ¤t->thread.regs, 0, parent_tid,
child_tid);
}