Commit d9836d1d authored by Paul Mackerras's avatar Paul Mackerras Committed by Paul Mackerras

PPC32: add the extra argument for do_fork to the PPC calls.

parent 745f97b9
......@@ -445,7 +445,7 @@ int sys_clone(int p1, int p2, int p3, int p4, int p5, int p6,
{
struct task_struct *p;
CHECK_FULL_REGS(regs);
p = do_fork(p1 & ~CLONE_IDLETASK, regs->gpr[1], regs, 0);
p = do_fork(p1 & ~CLONE_IDLETASK, p2, regs, 0, (int *)p3);
return IS_ERR(p) ? PTR_ERR(p) : p->pid;
}
......@@ -454,7 +454,7 @@ int sys_fork(int p1, int p2, int p3, int p4, int p5, int p6,
{
struct task_struct *p;
CHECK_FULL_REGS(regs);
p = do_fork(SIGCHLD, regs->gpr[1], regs, 0);
p = do_fork(SIGCHLD, regs->gpr[1], regs, 0, NULL);
return IS_ERR(p) ? PTR_ERR(p) : p->pid;
}
......@@ -463,7 +463,7 @@ int sys_vfork(int p1, int p2, int p3, int p4, int p5, int p6,
{
struct task_struct *p;
CHECK_FULL_REGS(regs);
p = do_fork(CLONE_VFORK | CLONE_VM | SIGCHLD, regs->gpr[1], regs, 0);
p = do_fork(CLONE_VFORK | CLONE_VM | SIGCHLD, regs->gpr[1], regs, 0, NULL);
return IS_ERR(p) ? PTR_ERR(p) : p->pid;
}
......
......@@ -392,7 +392,7 @@ int __cpu_up(unsigned int cpu)
/* create a process for the processor */
/* only regs.msr is actually used, and 0 is OK for it */
memset(&regs, 0, sizeof(struct pt_regs));
p = do_fork(CLONE_VM|CLONE_IDLETASK, 0, &regs, 0);
p = do_fork(CLONE_VM|CLONE_IDLETASK, 0, &regs, 0, NULL);
if (IS_ERR(p))
panic("failed fork for CPU %u: %li", cpu, PTR_ERR(p));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment