Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 18070
b: refs/heads/master
c: 36483c6
h: refs/heads/master
v: v3
  • Loading branch information
Al Viro authored and Linus Torvalds committed Jan 12, 2006
1 parent 6bc421c commit cc51f3e
Show file tree
Hide file tree
Showing 2 changed files with 5 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: d562ef6a23feb72f32ebd23fb32fe7d2c35a85cd
refs/heads/master: 36483c6b5e6cc8f29fbe5203caa7e0b836802747
8 changes: 4 additions & 4 deletions trunk/arch/sparc/kernel/process.c
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ void show_stack(struct task_struct *tsk, unsigned long *_ksp)
int count = 0;

if (tsk != NULL)
task_base = (unsigned long) tsk->thread_info;
task_base = (unsigned long) task_stack_page(tsk);
else
task_base = (unsigned long) current_thread_info();

Expand Down Expand Up @@ -392,7 +392,7 @@ void flush_thread(void)
/* We must fixup kregs as well. */
/* XXX This was not fixed for ti for a while, worked. Unused? */
current->thread.kregs = (struct pt_regs *)
((char *)current->thread_info + (THREAD_SIZE - TRACEREG_SZ));
(task_stack_page(current) + (THREAD_SIZE - TRACEREG_SZ));
}
}

Expand Down Expand Up @@ -459,7 +459,7 @@ int copy_thread(int nr, unsigned long clone_flags, unsigned long sp,
unsigned long unused,
struct task_struct *p, struct pt_regs *regs)
{
struct thread_info *ti = p->thread_info;
struct thread_info *ti = task_thread_info(p);
struct pt_regs *childregs;
char *new_stack;

Expand All @@ -482,7 +482,7 @@ int copy_thread(int nr, unsigned long clone_flags, unsigned long sp,
* V V (stk.fr.) V (pt_regs) { (stk.fr.) }
* +----- - - - - - ------+===========+============={+==========}+
*/
new_stack = (char*)ti + THREAD_SIZE;
new_stack = task_stack_page(p) + THREAD_SIZE;
if (regs->psr & PSR_PS)
new_stack -= STACKFRAME_SZ;
new_stack -= STACKFRAME_SZ + TRACEREG_SZ;
Expand Down

0 comments on commit cc51f3e

Please sign in to comment.