diff options
| author | Yuval Adam <_@yuv.al> | 2017-08-30 08:25:59 +0000 |
|---|---|---|
| committer | Yuval Adam <_@yuv.al> | 2017-08-30 08:25:59 +0000 |
| commit | 8e4bff4cab0ddac6060645b0715210484d02ff40 (patch) | |
| tree | 3a5c3024371a04692a3a6d9974d001cdff8ebf84 /arch/sh/include/asm/ptrace_64.h | |
Diffstat (limited to 'arch/sh/include/asm/ptrace_64.h')
| -rw-r--r-- | arch/sh/include/asm/ptrace_64.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/arch/sh/include/asm/ptrace_64.h b/arch/sh/include/asm/ptrace_64.h new file mode 100644 index 00000000..97f4b566 --- /dev/null +++ b/arch/sh/include/asm/ptrace_64.h @@ -0,0 +1,13 @@ +#ifndef __ASM_SH_PTRACE_64_H +#define __ASM_SH_PTRACE_64_H + +#include <uapi/asm/ptrace_64.h> + + +#define MAX_REG_OFFSET offsetof(struct pt_regs, tregs[7]) +static inline long regs_return_value(struct pt_regs *regs) +{ + return regs->regs[3]; +} + +#endif /* __ASM_SH_PTRACE_64_H */ |
