Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 252050
b: refs/heads/master
c: 3cea45c
h: refs/heads/master
v: v3
  • Loading branch information
Mike Frysinger authored and Linus Torvalds committed May 27, 2011
1 parent fe29872 commit a73a7af
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 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: c46dd6b48db02c1fa2f0644809605344660d3956
refs/heads/master: 3cea45c6ef459b776123a4855eba6dafd506f3ce
6 changes: 4 additions & 2 deletions trunk/arch/sh/include/asm/ptrace.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,8 @@
#include <asm/system.h>

#define user_mode(regs) (((regs)->sr & 0x40000000)==0)
#define user_stack_pointer(_regs) ((unsigned long)(_regs)->regs[15])
#define kernel_stack_pointer(_regs) ((unsigned long)(_regs)->regs[15])
#define instruction_pointer(regs) ((unsigned long)(regs)->pc)
#define GET_USP(regs) ((regs)->regs[15])

extern void show_regs(struct pt_regs *);

Expand Down Expand Up @@ -139,6 +138,9 @@ static inline unsigned long profile_pc(struct pt_regs *regs)

return pc;
}
#define profile_pc profile_pc

#include <asm-generic/ptrace.h>
#endif /* __KERNEL__ */

#endif /* __ASM_SH_PTRACE_H */

0 comments on commit a73a7af

Please sign in to comment.