[PATCH] m68k: 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 768595ff 097cb338

+3 -4
+3 -4
arch/m68k/kernel/process.c
··· 238 238 { 239 239 struct pt_regs * childregs; 240 240 struct switch_stack * childstack, *stack; 241 - unsigned long stack_offset, *retp; 241 + unsigned long *retp; 242 242 243 - stack_offset = THREAD_SIZE - sizeof(struct pt_regs); 244 - childregs = (struct pt_regs *) ((unsigned long) (p->thread_info) + stack_offset); 243 + childregs = (struct pt_regs *) (task_stack_page(p) + THREAD_SIZE) - 1; 245 244 246 245 *childregs = *regs; 247 246 childregs->d0 = 0; ··· 385 386 if (!p || p == current || p->state == TASK_RUNNING) 386 387 return 0; 387 388 388 - stack_page = (unsigned long)(p->thread_info); 389 + stack_page = (unsigned long)task_stack_page(p); 389 390 fp = ((struct switch_stack *)p->thread.ksp)->a6; 390 391 do { 391 392 if (fp < stack_page+sizeof(struct thread_info) ||