diff options
Diffstat (limited to 'kernel/arch/sh/include/asm/ptrace_64.h')
-rw-r--r-- | kernel/arch/sh/include/asm/ptrace_64.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/kernel/arch/sh/include/asm/ptrace_64.h b/kernel/arch/sh/include/asm/ptrace_64.h new file mode 100644 index 000000000..97f4b5660 --- /dev/null +++ b/kernel/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 */ |