提交 62e791c1 编写于 作者: A Al Viro

don't pass regs to copy_process()

Signed-off-by: NAl Viro <viro@zeniv.linux.org.uk>
上级 afa86fc4
...@@ -1127,7 +1127,6 @@ static void posix_cpu_timers_init(struct task_struct *tsk) ...@@ -1127,7 +1127,6 @@ static void posix_cpu_timers_init(struct task_struct *tsk)
*/ */
static struct task_struct *copy_process(unsigned long clone_flags, static struct task_struct *copy_process(unsigned long clone_flags,
unsigned long stack_start, unsigned long stack_start,
struct pt_regs *regs,
unsigned long stack_size, unsigned long stack_size,
int __user *child_tidptr, int __user *child_tidptr,
struct pid *pid, struct pid *pid,
...@@ -1536,8 +1535,7 @@ struct task_struct * __cpuinit fork_idle(int cpu) ...@@ -1536,8 +1535,7 @@ struct task_struct * __cpuinit fork_idle(int cpu)
struct task_struct *task; struct task_struct *task;
struct pt_regs regs; struct pt_regs regs;
task = copy_process(CLONE_VM, 0, idle_regs(&regs), 0, NULL, task = copy_process(CLONE_VM, 0, 0, NULL, &init_struct_pid, 0);
&init_struct_pid, 0);
if (!IS_ERR(task)) { if (!IS_ERR(task)) {
init_idle_pids(task->pids); init_idle_pids(task->pids);
init_idle(task, cpu); init_idle(task, cpu);
...@@ -1596,7 +1594,7 @@ long do_fork(unsigned long clone_flags, ...@@ -1596,7 +1594,7 @@ long do_fork(unsigned long clone_flags,
trace = 0; trace = 0;
} }
p = copy_process(clone_flags, stack_start, regs, stack_size, p = copy_process(clone_flags, stack_start, stack_size,
child_tidptr, NULL, trace); child_tidptr, NULL, trace);
/* /*
* Do this prior waking up the new thread - the thread pointer * Do this prior waking up the new thread - the thread pointer
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册