[PATCH] m68knommu: task_stack_page()

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>

authored by Al Viro and committed by Linus Torvalds 513091ba 768595ff

+2 -3
+2 -3
arch/m68knommu/kernel/process.c
··· 198 198 { 199 199 struct pt_regs * childregs; 200 200 struct switch_stack * childstack, *stack; 201 - unsigned long stack_offset, *retp; 201 + unsigned long *retp; 202 202 203 - stack_offset = THREAD_SIZE - sizeof(struct pt_regs); 204 - childregs = (struct pt_regs *) ((unsigned long) p->thread_info + stack_offset); 203 + childregs = (struct pt_regs *) (task_stack_page(p) + THREAD_SIZE) - 1; 205 204 206 205 *childregs = *regs; 207 206 childregs->d0 = 0;