Skip to content

Commit

Permalink
[PATCH] h8300: task_stack_page()
Browse files Browse the repository at this point in the history
Signed-off-by: Al Viro <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
Al Viro authored and Linus Torvalds committed Jan 12, 2006
1 parent 40f1f0d commit 68f8b1f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/h8300/kernel/process.c
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ int copy_thread(int nr, unsigned long clone_flags,
{
struct pt_regs * childregs;

childregs = ((struct pt_regs *) (THREAD_SIZE + (unsigned long) p->thread_info)) - 1;
childregs = (struct pt_regs *) (THREAD_SIZE + task_stack_page(p)) - 1;

*childregs = *regs;
childregs->retpc = (unsigned long) ret_from_fork;
Expand Down

0 comments on commit 68f8b1f

Please sign in to comment.