1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
2 #ifndef _UAPI__ASM_SH_PTRACE_32_H
3 #define _UAPI__ASM_SH_PTRACE_32_H
6 * GCC defines register number like this:
7 * -----------------------------
8 * 0 - 15 are integer registers
9 * 17 - 22 are control/special registers
10 * 24 - 39 fp registers
11 * 40 - 47 xd registers
13 * -----------------------------
15 * We follows above, except:
16 * 16 --- program counter (PC)
18 * 23 --- floating point communication register
31 #define REG_SYSCALL 22
34 #define REG_FPREG15 38
36 #define REG_XFREG15 54
42 * This struct defines the way the registers are stored on the
43 * kernel stack during a system call or other kernel entry.
46 unsigned long regs
[16];
57 * This struct defines the way the DSP registers are stored on the
58 * kernel stack during a system call or other kernel entry.
78 #endif /* _UAPI__ASM_SH_PTRACE_32_H */