Skip to contentSkip to conversation

h8300: task_stack_page()

PATCH In review Al Viro 1 participant 1 message Jan 3, 2006 Generic include/asm header files

lore
Share & tools
lore

Al Viro

author
#0 lore raw

PATCH 30/50 h8300: task_stack_page()

References: <[email protected]>
In-Reply-To: <[email protected]>

---

 arch/h8300/kernel/process.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

ffc2e31ff9f23d041b8de15f5083ab4e986438dd

arch/h8300/kernel/process.c +1 -1
index fe21adf..f053b14 100644
@@ -195,7 +195,7 @@ int copy_thread(int nr, unsigned long cl
 {
 	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;
Signature · 1 line
0.99.9.GIT