blob: 1dd4480c5363f5e413dc35e0b65c9278ffbc1bae [file] [log] [blame]
Paul Mundtda28c592010-06-14 16:02:47 +09001#ifndef __ASM_SH_PTRACE_32_H
2#define __ASM_SH_PTRACE_32_H
3
David Howells0a9426d2012-10-09 09:47:37 +01004#include <uapi/asm/ptrace_32.h>
Paul Mundtda28c592010-06-14 16:02:47 +09005
Paul Mundtda28c592010-06-14 16:02:47 +09006
7#define MAX_REG_OFFSET offsetof(struct pt_regs, tra)
Eric Parisd7e75282012-01-03 14:23:06 -05008static inline long regs_return_value(struct pt_regs *regs)
9{
10 return regs->regs[0];
11}
Paul Mundtda28c592010-06-14 16:02:47 +090012
Paul Mundtda28c592010-06-14 16:02:47 +090013#endif /* __ASM_SH_PTRACE_32_H */