Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 54013
b: refs/heads/master
c: 5ba6d3f
h: refs/heads/master
i:
  54011: d5696bd
v: v3
  • Loading branch information
Russell King authored and Russell King committed May 6, 2007
1 parent 78af9c3 commit 7be6e28
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 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: 40435792525c49cf126ba92d223e877acb5ce021
refs/heads/master: 5ba6d3febd4978f31b2c523d64d381603923a709
6 changes: 3 additions & 3 deletions trunk/arch/arm/kernel/ptrace.c
Original file line number Diff line number Diff line change
Expand Up @@ -779,8 +779,8 @@ long arch_ptrace(struct task_struct *child, long request, long addr, long data)
break;

case PTRACE_SET_SYSCALL:
task_thread_info(child)->syscall = data;
ret = 0;
child->ptrace_message = data;
break;

#ifdef CONFIG_CRUNCH
Expand Down Expand Up @@ -817,7 +817,7 @@ asmlinkage int syscall_trace(int why, struct pt_regs *regs, int scno)
ip = regs->ARM_ip;
regs->ARM_ip = why;

current->ptrace_message = scno;
current_thread_info()->syscall = scno;

/* the 0x80 provides a way for the tracing parent to distinguish
between a syscall stop and SIGTRAP delivery */
Expand All @@ -834,5 +834,5 @@ asmlinkage int syscall_trace(int why, struct pt_regs *regs, int scno)
}
regs->ARM_ip = ip;

return current->ptrace_message;
return current_thread_info()->syscall;
}
1 change: 1 addition & 0 deletions trunk/include/asm-arm/thread_info.h
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ struct thread_info {
__u32 cpu; /* cpu */
__u32 cpu_domain; /* cpu domain */
struct cpu_context_save cpu_context; /* cpu context */
__u32 syscall; /* syscall number */
__u8 used_cp[16]; /* thread used copro */
unsigned long tp_value;
struct crunch_state crunchstate;
Expand Down

0 comments on commit 7be6e28

Please sign in to comment.