Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 18055
b: refs/heads/master
c: 27f4513
h: refs/heads/master
i:
  18053: ba2264e
  18051: b08cdd1
  18047: 0684d85
v: v3
  • Loading branch information
Al Viro authored and Linus Torvalds committed Jan 12, 2006
1 parent 8a5f3d2 commit 439bff9
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 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: 37bfbaf995d2c1f8196ee04c9d6f68258d5ec3e8
refs/heads/master: 27f451304aa6f2bccf34ef3c2b049c01d05d6fff
6 changes: 3 additions & 3 deletions trunk/arch/alpha/kernel/process.c
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ copy_thread(int nr, unsigned long clone_flags, unsigned long usp,
{
extern void ret_from_fork(void);

struct thread_info *childti = p->thread_info;
struct thread_info *childti = task_thread_info(p);
struct pt_regs * childregs;
struct switch_stack * childstack, *stack;
unsigned long stack_offset, settls;
Expand All @@ -285,7 +285,7 @@ copy_thread(int nr, unsigned long clone_flags, unsigned long usp,
if (!(regs->ps & 8))
stack_offset = (PAGE_SIZE-1) & (unsigned long) regs;
childregs = (struct pt_regs *)
(stack_offset + PAGE_SIZE + (long) childti);
(stack_offset + PAGE_SIZE + task_stack_page(p));

*childregs = *regs;
settls = regs->r20;
Expand Down Expand Up @@ -492,7 +492,7 @@ do_sys_execve(char __user *ufilename, char __user * __user *argv,
unsigned long
thread_saved_pc(task_t *t)
{
unsigned long base = (unsigned long)t->thread_info;
unsigned long base = (unsigned long)task_stack_page(t);
unsigned long fp, sp = task_thread_info(t)->pcb.ksp;

if (sp > base && sp+6*8 < base + 16*1024) {
Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/alpha/kernel/ptrace.c
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ get_reg_addr(struct task_struct * task, unsigned long regno)
zero = 0;
addr = &zero;
} else {
addr = (void *)task->thread_info + regoff[regno];
addr = task_stack_page(task) + regoff[regno];
}
return addr;
}
Expand Down
2 changes: 1 addition & 1 deletion trunk/include/asm-alpha/ptrace.h
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ struct switch_stack {
extern void show_regs(struct pt_regs *);

#define alpha_task_regs(task) \
((struct pt_regs *) ((long) (task)->thread_info + 2*PAGE_SIZE) - 1)
((struct pt_regs *) (task_stack_page(task) + 2*PAGE_SIZE) - 1)

#define force_successful_syscall_return() (alpha_task_regs(current)->r0 = 0)

Expand Down

0 comments on commit 439bff9

Please sign in to comment.