From: Christoph Hellwig <hch@lst.de>
To: torvalds@transmeta.com, paulus@samba.org
Cc: linux-kernel@vger.kernel.org
Subject: [PATCH] do_fork updates for ppc
Date: Tue, 20 May 2003 17:19:44 +0200 [thread overview]
Message-ID: <20030520171944.A20860@lst.de> (raw)
Update ppc for mingo's do_fork changes. Together with the pmac compile
fixes this allows me to stay at the bledding edge with my my ibook..
Paul, any chance for sending Linus more updates from the linuxppc tree?
I still can't build SMP or the sound drivers in mainline..
--- 1.33/arch/ppc/kernel/process.c Tue May 13 03:59:20 2003
+++ edited/arch/ppc/kernel/process.c Mon May 19 18:32:25 2003
@@ -445,33 +445,26 @@
void *child_threadptr, int *child_tidp, int p6,
struct pt_regs *regs)
{
- struct task_struct *p;
-
CHECK_FULL_REGS(regs);
if (usp == 0)
usp = regs->gpr[1]; /* stack pointer for child */
- p = do_fork(clone_flags & ~CLONE_IDLETASK, usp, regs, 0,
- parent_tidp, child_tidp);
- return IS_ERR(p) ? PTR_ERR(p) : p->pid;
+ return do_fork(clone_flags & ~CLONE_IDLETASK, usp, regs, 0,
+ parent_tidp, child_tidp);
}
int sys_fork(int p1, int p2, int p3, int p4, int p5, int p6,
struct pt_regs *regs)
{
- struct task_struct *p;
CHECK_FULL_REGS(regs);
- p = do_fork(SIGCHLD, regs->gpr[1], regs, 0, NULL, NULL);
- return IS_ERR(p) ? PTR_ERR(p) : p->pid;
+ return do_fork(SIGCHLD, regs->gpr[1], regs, 0, NULL, NULL);
}
int sys_vfork(int p1, int p2, int p3, int p4, int p5, int p6,
struct pt_regs *regs)
{
- struct task_struct *p;
CHECK_FULL_REGS(regs);
- p = do_fork(CLONE_VFORK | CLONE_VM | SIGCHLD, regs->gpr[1], regs,
- 0, NULL, NULL);
- return IS_ERR(p) ? PTR_ERR(p) : p->pid;
+ return do_fork(CLONE_VFORK | CLONE_VM | SIGCHLD, regs->gpr[1],
+ regs, 0, NULL, NULL);
}
int sys_execve(unsigned long a0, unsigned long a1, unsigned long a2,
===== arch/ppc/kernel/smp.c 1.32 vs edited =====
--- 1.32/arch/ppc/kernel/smp.c Wed Apr 30 14:41:43 2003
+++ edited/arch/ppc/kernel/smp.c Mon May 19 18:33:32 2003
@@ -403,7 +403,7 @@
/* 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, NULL, NULL);
+ p = copy_process(CLONE_VM|CLONE_IDLETASK, 0, ®s, 0, NULL, NULL);
if (IS_ERR(p))
panic("failed fork for CPU %u: %li", cpu, PTR_ERR(p));
===== drivers/ide/ppc/pmac.c 1.12 vs edited =====
reply other threads:[~2003-05-20 15:07 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20030520171944.A20860@lst.de \
--to=hch@lst.de \
--cc=linux-kernel@vger.kernel.org \
--cc=paulus@samba.org \
--cc=torvalds@transmeta.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox