Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 72791
b: refs/heads/master
c: 62b14c2
h: refs/heads/master
i:
  72789: ee249b5
  72787: b38f694
  72783: 4a43a46
v: v3
  • Loading branch information
Atsushi Nemoto authored and Ralf Baechle committed Oct 29, 2007
1 parent b70149e commit e01c5b5
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 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: 26c288f82c74dba08da6321c626c101a7aa8575b
refs/heads/master: 62b14c24b10033591bbab16dea165d696a616f37
18 changes: 9 additions & 9 deletions trunk/arch/mips/kernel/ptrace.c
Original file line number Diff line number Diff line change
Expand Up @@ -65,13 +65,13 @@ int ptrace_getregs(struct task_struct *child, __s64 __user *data)
regs = task_pt_regs(child);

for (i = 0; i < 32; i++)
__put_user(regs->regs[i], data + i);
__put_user(regs->lo, data + EF_LO - EF_R0);
__put_user(regs->hi, data + EF_HI - EF_R0);
__put_user(regs->cp0_epc, data + EF_CP0_EPC - EF_R0);
__put_user(regs->cp0_badvaddr, data + EF_CP0_BADVADDR - EF_R0);
__put_user(regs->cp0_status, data + EF_CP0_STATUS - EF_R0);
__put_user(regs->cp0_cause, data + EF_CP0_CAUSE - EF_R0);
__put_user((long)regs->regs[i], data + i);
__put_user((long)regs->lo, data + EF_LO - EF_R0);
__put_user((long)regs->hi, data + EF_HI - EF_R0);
__put_user((long)regs->cp0_epc, data + EF_CP0_EPC - EF_R0);
__put_user((long)regs->cp0_badvaddr, data + EF_CP0_BADVADDR - EF_R0);
__put_user((long)regs->cp0_status, data + EF_CP0_STATUS - EF_R0);
__put_user((long)regs->cp0_cause, data + EF_CP0_CAUSE - EF_R0);

return 0;
}
Expand Down Expand Up @@ -390,11 +390,11 @@ long arch_ptrace(struct task_struct *child, long request, long addr, long data)
}

case PTRACE_GETREGS:
ret = ptrace_getregs(child, (__u64 __user *) data);
ret = ptrace_getregs(child, (__s64 __user *) data);
break;

case PTRACE_SETREGS:
ret = ptrace_setregs(child, (__u64 __user *) data);
ret = ptrace_setregs(child, (__s64 __user *) data);
break;

case PTRACE_GETFPREGS:
Expand Down
4 changes: 2 additions & 2 deletions trunk/arch/mips/kernel/ptrace32.c
Original file line number Diff line number Diff line change
Expand Up @@ -346,11 +346,11 @@ asmlinkage int sys32_ptrace(int request, int pid, int addr, int data)
}

case PTRACE_GETREGS:
ret = ptrace_getregs(child, (__u64 __user *) (__u64) data);
ret = ptrace_getregs(child, (__s64 __user *) (__u64) data);
break;

case PTRACE_SETREGS:
ret = ptrace_setregs(child, (__u64 __user *) (__u64) data);
ret = ptrace_setregs(child, (__s64 __user *) (__u64) data);
break;

case PTRACE_GETFPREGS:
Expand Down

0 comments on commit e01c5b5

Please sign in to comment.