Go to the documentation of this file. 1 #ifndef _UAPI__SPARC_PTRACE_H
2 #define _UAPI__SPARC_PTRACE_H
4 #if defined(__sparc__) && defined(__arch64__)
15 #define PT_REGS_MAGIC 0x57ac6c00
19 #include <linux/types.h>
47 unsigned int u_regs[16];
52 unsigned long locals[8];
69 unsigned long xargs[6];
74 struct sparc_stackf32 {
75 unsigned int locals[8];
78 unsigned int callers_pc;
79 unsigned int structptr;
80 unsigned int xargs[6];
81 unsigned int xxargs[1];
85 unsigned long locals[8];
101 #include <linux/types.h>
133 #define TRACEREG_SZ sizeof(struct pt_regs)
134 #define STACKFRAME_SZ sizeof(struct sparc_stackf)
136 #define TRACEREG32_SZ sizeof(struct pt_regs32)
137 #define STACKFRAME32_SZ sizeof(struct sparc_stackf32)
157 #define UREG_FP UREG_I6
158 #define UREG_RETPC UREG_I7
160 #if defined(__sparc__) && defined(__arch64__)
168 #define TRACEREG_SZ 0xa0
169 #define STACKFRAME_SZ 0xc0
171 #define TRACEREG32_SZ 0x50
172 #define STACKFRAME32_SZ 0x60
184 #define TRACEREG_SZ 0x50
185 #define STACKFRAME_SZ 0x60
192 #define PT_V9_G0 0x00
193 #define PT_V9_G1 0x08
194 #define PT_V9_G2 0x10
195 #define PT_V9_G3 0x18
196 #define PT_V9_G4 0x20
197 #define PT_V9_G5 0x28
198 #define PT_V9_G6 0x30
199 #define PT_V9_G7 0x38
200 #define PT_V9_I0 0x40
201 #define PT_V9_I1 0x48
202 #define PT_V9_I2 0x50
203 #define PT_V9_I3 0x58
204 #define PT_V9_I4 0x60
205 #define PT_V9_I5 0x68
206 #define PT_V9_I6 0x70
207 #define PT_V9_FP PT_V9_I6
208 #define PT_V9_I7 0x78
209 #define PT_V9_TSTATE 0x80
210 #define PT_V9_TPC 0x88
211 #define PT_V9_TNPC 0x90
213 #define PT_V9_MAGIC 0x9c
214 #define PT_TSTATE PT_V9_TSTATE
215 #define PT_TPC PT_V9_TPC
216 #define PT_TNPC PT_V9_TNPC
243 #define RW_V9_L0 0x00
244 #define RW_V9_L1 0x08
245 #define RW_V9_L2 0x10
246 #define RW_V9_L3 0x18
247 #define RW_V9_L4 0x20
248 #define RW_V9_L5 0x28
249 #define RW_V9_L6 0x30
250 #define RW_V9_L7 0x38
251 #define RW_V9_I0 0x40
252 #define RW_V9_I1 0x48
253 #define RW_V9_I2 0x50
254 #define RW_V9_I3 0x58
255 #define RW_V9_I4 0x60
256 #define RW_V9_I5 0x68
257 #define RW_V9_I6 0x70
258 #define RW_V9_I7 0x78
278 #define SF_V9_L0 0x00
279 #define SF_V9_L1 0x08
280 #define SF_V9_L2 0x10
281 #define SF_V9_L3 0x18
282 #define SF_V9_L4 0x20
283 #define SF_V9_L5 0x28
284 #define SF_V9_L6 0x30
285 #define SF_V9_L7 0x38
286 #define SF_V9_I0 0x40
287 #define SF_V9_I1 0x48
288 #define SF_V9_I2 0x50
289 #define SF_V9_I3 0x58
290 #define SF_V9_I4 0x60
291 #define SF_V9_I5 0x68
292 #define SF_V9_FP 0x70
293 #define SF_V9_PC 0x78
294 #define SF_V9_RETP 0x80
295 #define SF_V9_XARG0 0x88
296 #define SF_V9_XARG1 0x90
297 #define SF_V9_XARG2 0x98
298 #define SF_V9_XARG3 0xa0
299 #define SF_V9_XARG4 0xa8
300 #define SF_V9_XARG5 0xb0
301 #define SF_V9_XXARG 0xb8
320 #define SF_XARG0 0x44
321 #define SF_XARG1 0x48
322 #define SF_XARG2 0x4c
323 #define SF_XARG3 0x50
324 #define SF_XARG4 0x54
325 #define SF_XARG5 0x58
326 #define SF_XXARG 0x5c
330 #define PTRACE_SPARC_DETACH 11
331 #define PTRACE_GETREGS 12
332 #define PTRACE_SETREGS 13
333 #define PTRACE_GETFPREGS 14
334 #define PTRACE_SETFPREGS 15
335 #define PTRACE_READDATA 16
336 #define PTRACE_WRITEDATA 17
337 #define PTRACE_READTEXT 18
338 #define PTRACE_WRITETEXT 19
339 #define PTRACE_GETFPAREGS 20
340 #define PTRACE_SETFPAREGS 21
346 #define PTRACE_GETREGS64 22
347 #define PTRACE_SETREGS64 23
349 #define PTRACE_GETFPREGS64 25
350 #define PTRACE_SETFPREGS64 26