diff options
Diffstat (limited to 'arch/sparc/kernel/ptrace.c')
-rw-r--r-- | arch/sparc/kernel/ptrace.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/sparc/kernel/ptrace.c b/arch/sparc/kernel/ptrace.c index fc470c0e9dc6..1baf13ed5c3a 100644 --- a/arch/sparc/kernel/ptrace.c +++ b/arch/sparc/kernel/ptrace.c | |||
@@ -75,7 +75,7 @@ static inline void read_sunos_user(struct pt_regs *regs, unsigned long offset, | |||
75 | struct task_struct *tsk, long __user *addr) | 75 | struct task_struct *tsk, long __user *addr) |
76 | { | 76 | { |
77 | struct pt_regs *cregs = tsk->thread.kregs; | 77 | struct pt_regs *cregs = tsk->thread.kregs; |
78 | struct thread_info *t = tsk->thread_info; | 78 | struct thread_info *t = task_thread_info(tsk); |
79 | int v; | 79 | int v; |
80 | 80 | ||
81 | if(offset >= 1024) | 81 | if(offset >= 1024) |
@@ -170,7 +170,7 @@ static inline void write_sunos_user(struct pt_regs *regs, unsigned long offset, | |||
170 | struct task_struct *tsk) | 170 | struct task_struct *tsk) |
171 | { | 171 | { |
172 | struct pt_regs *cregs = tsk->thread.kregs; | 172 | struct pt_regs *cregs = tsk->thread.kregs; |
173 | struct thread_info *t = tsk->thread_info; | 173 | struct thread_info *t = task_thread_info(tsk); |
174 | unsigned long value = regs->u_regs[UREG_I3]; | 174 | unsigned long value = regs->u_regs[UREG_I3]; |
175 | 175 | ||
176 | if(offset >= 1024) | 176 | if(offset >= 1024) |