Merge tag 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost
[cris-mirror.git] / arch / score / include / asm / ptrace.h
blob026b9c51bee8c2662ee01a25e95e136fdec9a023
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>
8 struct task_struct;
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,
22 unsigned short *);
24 #define arch_has_single_step() (1)
26 #endif /* _ASM_SCORE_PTRACE_H */