]> git.neil.brown.name Git - history.git/commitdiff
PPC32: add the extra argument for do_fork to the PPC calls.
authorPaul Mackerras <paulus@au1.ibm.com>
Thu, 5 Sep 2002 02:06:38 +0000 (12:06 +1000)
committerPaul Mackerras <paulus@samba.org>
Thu, 5 Sep 2002 02:06:38 +0000 (12:06 +1000)
arch/ppc/kernel/process.c
arch/ppc/kernel/smp.c

index 3887adde6edf5a9842d1ea942d6482fe6780fe1c..907169af4893af02df393d72846b5bdc2c8e5782 100644 (file)
@@ -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;
 }
 
index efc7b9724bb9f64e7d60919d2862f483ce69cf7d..325a15bf1ec877b0476b1ac61a3a3f1710458a1f 100644 (file)
@@ -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));