Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 340359
b: refs/heads/master
c: 22062a9
h: refs/heads/master
i:
  340357: d75f062
  340355: d4b5bbb
  340351: 775b1e1
v: v3
  • Loading branch information
Al Viro committed Nov 29, 2012
1 parent efd7c5f commit a6a6de6
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 4f4202fe5ae9a43e59303f20d700571f695d7b1b
refs/heads/master: 22062a96300dabfef93368a28c34bdf35c9b8308
1 change: 1 addition & 0 deletions trunk/arch/alpha/include/asm/ptrace.h
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ struct switch_stack {

#define current_pt_regs() \
((struct pt_regs *) ((char *)current_thread_info() + 2*PAGE_SIZE) - 1)
#define signal_pt_regs current_pt_regs

#define force_successful_syscall_return() (current_pt_regs()->r0 = 0)

Expand Down
1 change: 1 addition & 0 deletions trunk/arch/h8300/include/asm/ptrace.h
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ struct pt_regs {
#define profile_pc(regs) instruction_pointer(regs)
#define current_pt_regs() ((struct pt_regs *) \
(THREAD_SIZE + (unsigned long)current_thread_info()) - 1)
#define signal_pt_regs() ((struct pt_regs *)current->thread.esp0)
#endif /* __KERNEL__ */
#endif /* __ASSEMBLY__ */
#endif /* _H8300_PTRACE_H */
9 changes: 9 additions & 0 deletions trunk/include/linux/ptrace.h
Original file line number Diff line number Diff line change
Expand Up @@ -333,6 +333,15 @@ static inline void user_single_step_siginfo(struct task_struct *tsk,
#define ptrace_signal_deliver(regs, cookie) do { } while (0)
#endif

/*
* unlike current_pt_regs(), this one is equal to task_pt_regs(current)
* on *all* architectures; the only reason to have a per-arch definition
* is optimisation.
*/
#ifndef signal_pt_regs
#define signal_pt_regs() task_pt_regs(current)
#endif

extern int task_current_syscall(struct task_struct *target, long *callno,
unsigned long args[6], unsigned int maxargs,
unsigned long *sp, unsigned long *pc);
Expand Down

0 comments on commit a6a6de6

Please sign in to comment.