[PATCH] cris: task_pt_regs()
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>
This commit is contained in:
@@ -79,7 +79,7 @@ void hard_reset_now (void)
|
||||
*/
|
||||
unsigned long thread_saved_pc(struct task_struct *t)
|
||||
{
|
||||
return (unsigned long)user_regs(t->thread_info)->irp;
|
||||
return task_pt_regs(t)->irp;
|
||||
}
|
||||
|
||||
static void kernel_thread_helper(void* dummy, int (*fn)(void *), void * arg)
|
||||
@@ -128,7 +128,7 @@ int copy_thread(int nr, unsigned long clone_flags, unsigned long usp,
|
||||
* remember that the task_struct doubles as the kernel stack for the task
|
||||
*/
|
||||
|
||||
childregs = user_regs(p->thread_info);
|
||||
childregs = task_pt_regs(p);
|
||||
|
||||
*childregs = *regs; /* struct copy of pt_regs */
|
||||
|
||||
|
Reference in New Issue
Block a user