1
2
3
4
5
6
7
8
9
10
11
12#ifndef _UAPI_ASM_PTRACE_H
13#define _UAPI_ASM_PTRACE_H
14
15#define PT_A3 0
16#define PT_A2 1
17#define PT_D3 2
18#define PT_D2 3
19#define PT_MCVF 4
20#define PT_MCRL 5
21#define PT_MCRH 6
22#define PT_MDRQ 7
23#define PT_E1 8
24#define PT_E0 9
25#define PT_E7 10
26#define PT_E6 11
27#define PT_E5 12
28#define PT_E4 13
29#define PT_E3 14
30#define PT_E2 15
31#define PT_SP 16
32#define PT_LAR 17
33#define PT_LIR 18
34#define PT_MDR 19
35#define PT_A1 20
36#define PT_A0 21
37#define PT_D1 22
38#define PT_D0 23
39#define PT_ORIG_D0 24
40#define PT_EPSW 25
41#define PT_PC 26
42#define NR_PTREGS 27
43
44
45
46
47
48struct pt_regs {
49 unsigned long a3;
50 unsigned long a2;
51 unsigned long d3;
52 unsigned long d2;
53 unsigned long mcvf;
54 unsigned long mcrl;
55 unsigned long mcrh;
56 unsigned long mdrq;
57 unsigned long e1;
58 unsigned long e0;
59 unsigned long e7;
60 unsigned long e6;
61 unsigned long e5;
62 unsigned long e4;
63 unsigned long e3;
64 unsigned long e2;
65 unsigned long sp;
66 unsigned long lar;
67 unsigned long lir;
68 unsigned long mdr;
69 unsigned long a1;
70 unsigned long a0;
71 unsigned long d1;
72 unsigned long d0;
73 struct pt_regs *next;
74 unsigned long orig_d0;
75 unsigned long epsw;
76 unsigned long pc;
77};
78
79
80#define PTRACE_GETREGS 12
81#define PTRACE_SETREGS 13
82#define PTRACE_GETFPREGS 14
83#define PTRACE_SETFPREGS 15
84
85#endif
86