License cleanup: add SPDX GPL-2.0 license identifier to files with no license
[linux-2.6-block.git] / arch / score / include / asm / ptrace.h
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef _ASM_SCORE_PTRACE_H
3 #define _ASM_SCORE_PTRACE_H
4
5 #include <uapi/asm/ptrace.h>
6
7
8 struct task_struct;
9
10 /*
11  * Does the process account for user or for system time?
12  */
13 #define user_mode(regs)         ((regs->cp0_psr & 8) == 8)
14
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])
18
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 *);
23
24 #define arch_has_single_step()  (1)
25
26 #endif /* _ASM_SCORE_PTRACE_H */