Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 18076
b: refs/heads/master
c: b7f6961
h: refs/heads/master
v: v3
  • Loading branch information
Al Viro authored and Linus Torvalds committed Jan 12, 2006
1 parent 36a2a6b commit 0ccb459
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 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: 04fe6faf10c310480151667e7fe3e06df4208a8e
refs/heads/master: b7f6961d83d480c8636543d1d0dbb9584b878a68
2 changes: 1 addition & 1 deletion trunk/arch/v850/kernel/process.c
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ int copy_thread (int nr, unsigned long clone_flags,
struct task_struct *p, struct pt_regs *regs)
{
/* Start pushing stuff from the top of the child's kernel stack. */
unsigned long orig_ksp = (unsigned long)p->thread_info + THREAD_SIZE;
unsigned long orig_ksp = task_tos(p);
unsigned long ksp = orig_ksp;
/* We push two `state save' stack fames (see entry.S) on the new
kernel stack:
Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/v850/kernel/ptrace.c
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ static v850_reg_t *reg_save_addr (unsigned reg_offs, struct task_struct *t)
regs = thread_saved_regs (t);
else
/* Register saved during kernel entry (or not available). */
regs = task_regs (t);
regs = task_pt_regs (t);

return (v850_reg_t *)((char *)regs + reg_offs);
}
Expand Down
8 changes: 4 additions & 4 deletions trunk/include/asm-v850/processor.h
Original file line number Diff line number Diff line change
Expand Up @@ -98,10 +98,10 @@ unsigned long get_wchan (struct task_struct *p);


/* Return some info about the user process TASK. */
#define task_tos(task) ((unsigned long)(task)->thread_info + THREAD_SIZE)
#define task_regs(task) ((struct pt_regs *)task_tos (task) - 1)
#define task_sp(task) (task_regs (task)->gpr[GPR_SP])
#define task_pc(task) (task_regs (task)->pc)
#define task_tos(task) ((unsigned long)task_stack_page(task) + THREAD_SIZE)
#define task_pt_regs(task) ((struct pt_regs *)task_tos (task) - 1)
#define task_sp(task) (task_pt_regs (task)->gpr[GPR_SP])
#define task_pc(task) (task_pt_regs (task)->pc)
/* Grotty old names for some. */
#define KSTK_EIP(task) task_pc (task)
#define KSTK_ESP(task) task_sp (task)
Expand Down

0 comments on commit 0ccb459

Please sign in to comment.