Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 239
b: refs/heads/master
c: fb65b96
h: refs/heads/master
i:
  237: 8da464d
  235: f66c9ba
  231: fe6c946
  223: 57b7ebc
v: v3
  • Loading branch information
David S. Miller authored and Linus Torvalds committed Apr 18, 2005
1 parent 2ae0dfb commit 9b04e93
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 32 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: 961f8bc9fc91c39a3fe169f3b6d3df1b096769d3
refs/heads/master: fb65b9619b756793d824df7501c895a2c2871f40
12 changes: 0 additions & 12 deletions trunk/arch/sparc/kernel/ptrace.c
Original file line number Diff line number Diff line change
Expand Up @@ -530,18 +530,6 @@ asmlinkage void do_ptrace(struct pt_regs *regs)
pt_error_return(regs, EIO);
goto out_tsk;
}
if (addr != 1) {
if (addr & 3) {
pt_error_return(regs, EINVAL);
goto out_tsk;
}
#ifdef DEBUG_PTRACE
printk ("Original: %08lx %08lx\n", child->thread.kregs->pc, child->thread.kregs->npc);
printk ("Continuing with %08lx %08lx\n", addr, addr+4);
#endif
child->thread.kregs->pc = addr;
child->thread.kregs->npc = addr + 4;
}

if (request == PTRACE_SYSCALL)
set_tsk_thread_flag(child, TIF_SYSCALL_TRACE);
Expand Down
19 changes: 0 additions & 19 deletions trunk/arch/sparc64/kernel/ptrace.c
Original file line number Diff line number Diff line change
Expand Up @@ -514,25 +514,6 @@ asmlinkage void do_ptrace(struct pt_regs *regs)
pt_error_return(regs, EIO);
goto out_tsk;
}
if (addr != 1) {
unsigned long pc_mask = ~0UL;

if ((child->thread_info->flags & _TIF_32BIT) != 0)
pc_mask = 0xffffffff;

if (addr & 3) {
pt_error_return(regs, EINVAL);
goto out_tsk;
}
#ifdef DEBUG_PTRACE
printk ("Original: %016lx %016lx\n",
child->thread_info->kregs->tpc,
child->thread_info->kregs->tnpc);
printk ("Continuing with %016lx %016lx\n", addr, addr+4);
#endif
child->thread_info->kregs->tpc = (addr & pc_mask);
child->thread_info->kregs->tnpc = ((addr + 4) & pc_mask);
}

if (request == PTRACE_SYSCALL) {
set_tsk_thread_flag(child, TIF_SYSCALL_TRACE);
Expand Down

0 comments on commit 9b04e93

Please sign in to comment.