Paul Mundt | da28c59 | 2010-06-14 16:02:47 +0900 | [diff] [blame] | 1 | #ifndef __ASM_SH_PTRACE_64_H |
| 2 | #define __ASM_SH_PTRACE_64_H |
| 3 | |
| 4 | struct pt_regs { |
| 5 | unsigned long long pc; |
| 6 | unsigned long long sr; |
| 7 | long long syscall_nr; |
| 8 | unsigned long long regs[63]; |
| 9 | unsigned long long tregs[8]; |
| 10 | unsigned long long pad[2]; |
| 11 | }; |
| 12 | |
| 13 | #ifdef __KERNEL__ |
| 14 | |
| 15 | #define MAX_REG_OFFSET offsetof(struct pt_regs, tregs[7]) |
Eric Paris | d7e7528 | 2012-01-03 14:23:06 -0500 | [diff] [blame] | 16 | static inline long regs_return_value(struct pt_regs *regs) |
| 17 | { |
| 18 | return regs->regs[3]; |
| 19 | } |
Paul Mundt | da28c59 | 2010-06-14 16:02:47 +0900 | [diff] [blame] | 20 | |
| 21 | #endif /* __KERNEL__ */ |
| 22 | |
| 23 | #endif /* __ASM_SH_PTRACE_64_H */ |