提交 513091ba 编写于 作者: A Al Viro 提交者: Linus Torvalds

[PATCH] m68knommu: task_stack_page()

Signed-off-by: NAl Viro <viro@zeniv.linux.org.uk>
Signed-off-by: NAndrew Morton <akpm@osdl.org>
Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
上级 768595ff
...@@ -198,10 +198,9 @@ int copy_thread(int nr, unsigned long clone_flags, ...@@ -198,10 +198,9 @@ int copy_thread(int nr, unsigned long clone_flags,
{ {
struct pt_regs * childregs; struct pt_regs * childregs;
struct switch_stack * childstack, *stack; struct switch_stack * childstack, *stack;
unsigned long stack_offset, *retp; unsigned long *retp;
stack_offset = THREAD_SIZE - sizeof(struct pt_regs); childregs = (struct pt_regs *) (task_stack_page(p) + THREAD_SIZE) - 1;
childregs = (struct pt_regs *) ((unsigned long) p->thread_info + stack_offset);
*childregs = *regs; *childregs = *regs;
childregs->d0 = 0; childregs->d0 = 0;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册