Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 18090
b: refs/heads/master
c: ee8c1dd
h: refs/heads/master
v: v3
  • Loading branch information
Al Viro authored and Linus Torvalds committed Jan 12, 2006
1 parent 0915bd7 commit 3a405da
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 7fdf0d7a2012e560fee738bfd7f2af26faeb3a39
refs/heads/master: ee8c1dd44305cca9d0ded248de991f67b55ec622
4 changes: 2 additions & 2 deletions trunk/arch/sh64/kernel/process.c
Original file line number Diff line number Diff line change
Expand Up @@ -744,15 +744,15 @@ int copy_thread(int nr, unsigned long clone_flags, unsigned long usp,
}
#endif
/* Copy from sh version */
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;

if (user_mode(regs)) {
childregs->regs[15] = usp;
p->thread.uregs = childregs;
} else {
childregs->regs[15] = (unsigned long)p->thread_info + THREAD_SIZE;
childregs->regs[15] = (unsigned long)task_stack_page(p) + THREAD_SIZE;
}

childregs->regs[9] = 0; /* Set return value for child */
Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/sh64/lib/dbg.c
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ void evt_debug(int evt, int ret_addr, int event, int tra, struct pt_regs *regs)
struct ring_node *rr;

pid = current->pid;
stack_bottom = (unsigned long) current->thread_info;
stack_bottom = (unsigned long) task_stack_page(current);
asm volatile("ori r15, 0, %0" : "=r" (sp));
rr = event_ring + event_ptr;
rr->evt = evt;
Expand Down

0 comments on commit 3a405da

Please sign in to comment.