[PATCH] frv: task_thread_info(), 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 097cb338 6c3559fc

+2 -2
+2 -2
arch/frv/kernel/process.c
··· 204 205 regs0 = __kernel_frame0_ptr; 206 childregs0 = (struct pt_regs *) 207 - ((unsigned long) p->thread_info + THREAD_SIZE - USER_CONTEXT_SIZE); 208 childregs = childregs0; 209 210 /* set up the userspace frame (the only place that the USP is stored) */ ··· 220 *childregs = *regs; 221 childregs->sp = (unsigned long) childregs0; 222 childregs->next_frame = childregs0; 223 - childregs->gr15 = (unsigned long) p->thread_info; 224 childregs->gr29 = (unsigned long) p; 225 } 226
··· 204 205 regs0 = __kernel_frame0_ptr; 206 childregs0 = (struct pt_regs *) 207 + (task_stack_page(p) + THREAD_SIZE - USER_CONTEXT_SIZE); 208 childregs = childregs0; 209 210 /* set up the userspace frame (the only place that the USP is stored) */ ··· 220 *childregs = *regs; 221 childregs->sp = (unsigned long) childregs0; 222 childregs->next_frame = childregs0; 223 + childregs->gr15 = (unsigned long) task_thread_info(p); 224 childregs->gr29 = (unsigned long) p; 225 } 226