1 #ifndef __ASM_SH_PTRACE_32_H
2 #define __ASM_SH_PTRACE_32_H
5 * GCC defines register number like this:
6 * -----------------------------
7 * 0 - 15 are integer registers
8 * 17 - 22 are control/special registers
10 * 40 - 47 xd registers
12 * -----------------------------
14 * We follows above, except:
15 * 16 --- program counter (PC)
17 * 23 --- floating point communication register
30 #define REG_SYSCALL 22
33 #define REG_FPREG15 38
35 #define REG_XFREG15 54
41 * This struct defines the way the registers are stored on the
42 * kernel stack during a system call or other kernel entry.
45 unsigned long regs
[16];
56 * This struct defines the way the DSP registers are stored on the
57 * kernel stack during a system call or other kernel entry.
78 #define MAX_REG_OFFSET offsetof(struct pt_regs, tra)
79 static inline long regs_return_value(struct pt_regs
*regs
)
84 #endif /* __KERNEL__ */
86 #endif /* __ASM_SH_PTRACE_32_H */