Paul Mundt | da28c59 | 2010-06-14 16:02:47 +0900 | [diff] [blame] | 1 | #ifndef __ASM_SH_PTRACE_32_H |
| 2 | #define __ASM_SH_PTRACE_32_H |
| 3 | |
David Howells | 0a9426d | 2012-10-09 09:47:37 +0100 | [diff] [blame] | 4 | #include <uapi/asm/ptrace_32.h> |
Paul Mundt | da28c59 | 2010-06-14 16:02:47 +0900 | [diff] [blame] | 5 | |
Paul Mundt | da28c59 | 2010-06-14 16:02:47 +0900 | [diff] [blame] | 6 | |
| 7 | #define MAX_REG_OFFSET offsetof(struct pt_regs, tra) |
Eric Paris | d7e7528 | 2012-01-03 14:23:06 -0500 | [diff] [blame] | 8 | static inline long regs_return_value(struct pt_regs *regs) |
| 9 | { |
| 10 | return regs->regs[0]; |
| 11 | } |
Paul Mundt | da28c59 | 2010-06-14 16:02:47 +0900 | [diff] [blame] | 12 | |
Paul Mundt | da28c59 | 2010-06-14 16:02:47 +0900 | [diff] [blame] | 13 | #endif /* __ASM_SH_PTRACE_32_H */ |