ptrace_64.h 312 B

123456789101112131415
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. #ifndef __ASM_SH_PTRACE_64_H
  3. #define __ASM_SH_PTRACE_64_H
  4. #include <uapi/asm/ptrace_64.h>
  5. #define MAX_REG_OFFSET offsetof(struct pt_regs, tregs[7])
  6. static inline long regs_return_value(struct pt_regs *regs)
  7. {
  8. return regs->regs[3];
  9. }
  10. #endif /* __ASM_SH_PTRACE_64_H */