1
2 #ifndef _UAPI_M68K_PTRACE_H
3 #define _UAPI_M68K_PTRACE_H
4
5 #define PT_D1 0
6 #define PT_D2 1
7 #define PT_D3 2
8 #define PT_D4 3
9 #define PT_D5 4
10 #define PT_D6 5
11 #define PT_D7 6
12 #define PT_A0 7
13 #define PT_A1 8
14 #define PT_A2 9
15 #define PT_A3 10
16 #define PT_A4 11
17 #define PT_A5 12
18 #define PT_A6 13
19 #define PT_D0 14
20 #define PT_USP 15
21 #define PT_ORIG_D0 16
22 #define PT_SR 17
23 #define PT_PC 18
24
25 #ifndef __ASSEMBLY__
26
27
28
29
30 struct pt_regs {
31 long d1;
32 long d2;
33 long d3;
34 long d4;
35 long d5;
36 long a0;
37 long a1;
38 long a2;
39 long d0;
40 long orig_d0;
41 long stkadj;
42 #ifdef CONFIG_COLDFIRE
43 unsigned format : 4;
44 unsigned vector : 12;
45 unsigned short sr;
46 unsigned long pc;
47 #else
48 unsigned short sr;
49 unsigned long pc;
50 unsigned format : 4;
51 unsigned vector : 12;
52 #endif
53 };
54
55
56
57
58
59 struct switch_stack {
60 unsigned long d6;
61 unsigned long d7;
62 unsigned long a3;
63 unsigned long a4;
64 unsigned long a5;
65 unsigned long a6;
66 unsigned long retpc;
67 };
68
69
70 #define PTRACE_GETREGS 12
71 #define PTRACE_SETREGS 13
72 #define PTRACE_GETFPREGS 14
73 #define PTRACE_SETFPREGS 15
74
75 #define PTRACE_GET_THREAD_AREA 25
76
77 #define PTRACE_SINGLEBLOCK 33
78
79 #endif
80 #endif