ptrace.h 710 B

1234567891011121314151617181920212223242526
  1. #ifndef _ASM_SCORE_PTRACE_H
  2. #define _ASM_SCORE_PTRACE_H
  3. #include <uapi/asm/ptrace.h>
  4. struct task_struct;
  5. /*
  6. * Does the process account for user or for system time?
  7. */
  8. #define user_mode(regs) ((regs->cp0_psr & 8) == 8)
  9. #define instruction_pointer(regs) ((unsigned long)(regs)->cp0_epc)
  10. #define profile_pc(regs) instruction_pointer(regs)
  11. #define user_stack_pointer(r) ((unsigned long)(r)->regs[0])
  12. extern void do_syscall_trace(struct pt_regs *regs, int entryexit);
  13. extern int read_tsk_long(struct task_struct *, unsigned long, unsigned long *);
  14. extern int read_tsk_short(struct task_struct *, unsigned long,
  15. unsigned short *);
  16. #define arch_has_single_step() (1)
  17. #endif /* _ASM_SCORE_PTRACE_H */