Add the rt linux 4.1.3-rt3 as base
[kvmfornfv.git] / kernel / arch / score / include / asm / ptrace.h
1 #ifndef _ASM_SCORE_PTRACE_H
2 #define _ASM_SCORE_PTRACE_H
3
4 #include <uapi/asm/ptrace.h>
5
6
7 struct task_struct;
8
9 /*
10  * Does the process account for user or for system time?
11  */
12 #define user_mode(regs)         ((regs->cp0_psr & 8) == 8)
13
14 #define instruction_pointer(regs)       ((unsigned long)(regs)->cp0_epc)
15 #define profile_pc(regs)                instruction_pointer(regs)
16 #define user_stack_pointer(r)           ((unsigned long)(r)->regs[0])
17
18 extern void do_syscall_trace(struct pt_regs *regs, int entryexit);
19 extern int read_tsk_long(struct task_struct *, unsigned long, unsigned long *);
20 extern int read_tsk_short(struct task_struct *, unsigned long,
21                          unsigned short *);
22
23 #define arch_has_single_step()  (1)
24
25 #endif /* _ASM_SCORE_PTRACE_H */