1
2
3
4
5
6
7
8 #ifndef _ASM_C6X_PTRACE_H
9 #define _ASM_C6X_PTRACE_H
10
11 #include <uapi/asm/ptrace.h>
12
13 #ifndef __ASSEMBLY__
14 #ifdef _BIG_ENDIAN
15 #else
16 #endif
17
18 #include <linux/linkage.h>
19
20 #define user_mode(regs) ((((regs)->tsr) & 0x40) != 0)
21
22 #define instruction_pointer(regs) ((regs)->pc)
23 #define profile_pc(regs) instruction_pointer(regs)
24 #define user_stack_pointer(regs) ((regs)->sp)
25
26 extern void show_regs(struct pt_regs *);
27
28 extern asmlinkage unsigned long syscall_trace_entry(struct pt_regs *regs);
29 extern asmlinkage void syscall_trace_exit(struct pt_regs *regs);
30
31 #endif
32 #endif