2 * Copyright 2004-2008 Analog Devices Inc.
4 * Licensed under the GPL-2 or later.
7 #ifndef _UAPI_BFIN_PTRACE_H
8 #define _UAPI_BFIN_PTRACE_H
11 * GCC defines register number like this:
12 * -----------------------------
13 * 0 - 7 are data registers R0-R7
14 * 8 - 15 are address registers P0-P7
15 * 16 - 31 dsp registers I/B/L0 -- I/B/L3 & M0--M3
16 * 32 - 33 A registers A0 & A1
17 * 34 - status register
18 * -----------------------------
20 * We follows above, except:
21 * 32-33 --- Low 32-bit of A0&1
22 * 34-35 --- High 8-bit of A0&1
29 /* this struct defines the way the registers are stored on the
30 stack during a system call. */
39 long pc
; /* PC == RETI */
41 long reserved
; /* Used as scratch during system calls */
90 /* Arbitrarily choose the same ptrace numbers as used by the Sparc code. */
91 #define PTRACE_GETREGS 12
92 #define PTRACE_SETREGS 13 /* ptrace signal */
94 #define PTRACE_GETFDPIC 31 /* get the ELF fdpic loadmap address */
95 #define PTRACE_GETFDPIC_EXEC 0 /* [addr] request the executable loadmap */
96 #define PTRACE_GETFDPIC_INTERP 1 /* [addr] request the interpreter loadmap */
101 #endif /* __ASSEMBLY__ */
104 * Offsets used by 'ptrace' system call interface.
150 #define PT_RESERVED 32
159 #define PT_ORIG_R0 208
160 #define PT_ORIG_P0 212
161 #define PT_SYSCFG 216
162 #define PT_TEXT_ADDR 220
163 #define PT_TEXT_END_ADDR 224
164 #define PT_DATA_ADDR 228
165 #define PT_FDPIC_EXEC 232
166 #define PT_FDPIC_INTERP 236
168 #define PT_LAST_PSEUDO PT_FDPIC_INTERP
170 #endif /* _UAPI_BFIN_PTRACE_H */