Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 18079
b: refs/heads/master
c: 768595f
h: refs/heads/master
i:
  18077: d63d8e9
  18075: 36a2a6b
  18071: b5c5b70
  18063: 5249f15
  18047: 0684d85
v: v3
  • Loading branch information
Al Viro authored and Linus Torvalds committed Jan 12, 2006
1 parent 9393861 commit e01e332
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 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: 097cb338c72b4916d8221278caba63d74d9f19d6
refs/heads/master: 768595ffba46b101ad54d8775e640fecbe470d9a
7 changes: 3 additions & 4 deletions trunk/arch/m68k/kernel/process.c
Original file line number Diff line number Diff line change
Expand Up @@ -238,10 +238,9 @@ int copy_thread(int nr, unsigned long clone_flags, unsigned long usp,
{
struct pt_regs * childregs;
struct switch_stack * childstack, *stack;
unsigned long stack_offset, *retp;
unsigned long *retp;

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

*childregs = *regs;
childregs->d0 = 0;
Expand Down Expand Up @@ -386,7 +385,7 @@ unsigned long get_wchan(struct task_struct *p)
if (!p || p == current || p->state == TASK_RUNNING)
return 0;

stack_page = (unsigned long)(p->thread_info);
stack_page = (unsigned long)task_stack_page(p);
fp = ((struct switch_stack *)p->thread.ksp)->a6;
do {
if (fp < stack_page+sizeof(struct thread_info) ||
Expand Down

0 comments on commit e01e332

Please sign in to comment.