Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 513091ba authored by Al Viro's avatar Al Viro Committed by Linus Torvalds
Browse files

[PATCH] m68knommu: task_stack_page()



Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 768595ff
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -198,10 +198,9 @@ int copy_thread(int nr, unsigned long clone_flags,
{
	struct pt_regs * childregs;
	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 *) ((unsigned long) p->thread_info + stack_offset);
	childregs = (struct pt_regs *) (task_stack_page(p) + THREAD_SIZE) - 1;

	*childregs = *regs;
	childregs->d0 = 0;