1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef _ASM_SCORE_PTRACE_H
3 #define _ASM_SCORE_PTRACE_H
5 #include <uapi/asm/ptrace.h>
11 * Does the process account for user or for system time?
13 #define user_mode(regs) ((regs->cp0_psr & 8) == 8)
15 #define instruction_pointer(regs) ((unsigned long)(regs)->cp0_epc)
16 #define profile_pc(regs) instruction_pointer(regs)
17 #define user_stack_pointer(r) ((unsigned long)(r)->regs[0])
19 extern void do_syscall_trace(struct pt_regs
*regs
, int entryexit
);
20 extern int read_tsk_long(struct task_struct
*, unsigned long, unsigned long *);
21 extern int read_tsk_short(struct task_struct
*, unsigned long,
24 #define arch_has_single_step() (1)
26 #endif /* _ASM_SCORE_PTRACE_H */