diff options
| author | Paul Mackerras <paulus@au1.ibm.com> | 2002-09-05 12:06:38 +1000 |
|---|---|---|
| committer | Paul Mackerras <paulus@samba.org> | 2002-09-05 12:06:38 +1000 |
| commit | d9836d1dfbf25728e9bca32f8d2b785b11692e83 (patch) | |
| tree | acdf1bbafc8b46236b124b610e83df19522604bc | |
| parent | 745f97b9e0780005a6683e4dc35a413c8a9cee35 (diff) | |
PPC32: add the extra argument for do_fork to the PPC calls.
| -rw-r--r-- | arch/ppc/kernel/process.c | 6 | ||||
| -rw-r--r-- | arch/ppc/kernel/smp.c | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/arch/ppc/kernel/process.c b/arch/ppc/kernel/process.c index 3887adde6edf..907169af4893 100644 --- a/arch/ppc/kernel/process.c +++ b/arch/ppc/kernel/process.c @@ -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; } diff --git a/arch/ppc/kernel/smp.c b/arch/ppc/kernel/smp.c index efc7b9724bb9..325a15bf1ec8 100644 --- a/arch/ppc/kernel/smp.c +++ b/arch/ppc/kernel/smp.c @@ -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(®s, 0, sizeof(struct pt_regs)); - p = do_fork(CLONE_VM|CLONE_IDLETASK, 0, ®s, 0); + p = do_fork(CLONE_VM|CLONE_IDLETASK, 0, ®s, 0, NULL); if (IS_ERR(p)) panic("failed fork for CPU %u: %li", cpu, PTR_ERR(p)); |
