/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ #ifndef _UAPI__ASM_SH_PTRACE_32_H #define _UAPI__ASM_SH_PTRACE_32_H /* * GCC defines register number like this: * ----------------------------- * 0 - 15 are integer registers * 17 - 22 are control/special registers * 24 - 39 fp registers * 40 - 47 xd registers * 48 - fpscr register * ----------------------------- * * We follows above, except: * 16 --- program counter (PC) * 22 --- syscall # * 23 --- floating point communication register */ #define REG_REG0 0 #define REG_REG15 15 #define REG_PC 16 #define REG_PR 17 #define REG_SR 18 #define REG_GBR 19 #define REG_MACH 20 #define REG_MACL 21 #define REG_SYSCALL 22 #define REG_FPREG0 23 #define REG_FPREG15 38 #define REG_XFREG0 39 #define REG_XFREG15 54 #define REG_FPSCR 55 #define REG_FPUL 56 /* * This struct defines the way the registers are stored on the * kernel stack during a system call or other kernel entry. */ struct pt_regs { unsigned long regs[16]; unsigned long pc; unsigned long pr; unsigned long sr; unsigned long gbr; unsigned long mach; unsigned long macl; long tra; }; /* * This struct defines the way the DSP registers are stored on the * kernel stack during a system call or other kernel entry. */ struct pt_dspregs { unsigned long a1; unsigned long a0g; unsigned long a1g; unsigned long m0; unsigned long m1; unsigned long a0; unsigned long x0; unsigned long x1; unsigned long y0; unsigned long y1; unsigned long dsr; unsigned long rs; unsigned long re; unsigned long mod; }; #endif /* _UAPI__ASM_SH_PTRACE_32_H */
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
Kbuild | File | 526 B | 0644 |
|
auxvec.h | File | 1.08 KB | 0644 |
|
byteorder.h | File | 278 B | 0644 |
|
cachectl.h | File | 648 B | 0644 |
|
cpu-features.h | File | 1.13 KB | 0644 |
|
hw_breakpoint.h | File | 167 B | 0644 |
|
ioctls.h | File | 4.8 KB | 0644 |
|
posix_types.h | File | 205 B | 0644 |
|
posix_types_32.h | File | 801 B | 0644 |
|
posix_types_64.h | File | 1.01 KB | 0644 |
|
ptrace.h | File | 960 B | 0644 |
|
ptrace_32.h | File | 1.58 KB | 0644 |
|
ptrace_64.h | File | 352 B | 0644 |
|
setup.h | File | 31 B | 0644 |
|
sigcontext.h | File | 859 B | 0644 |
|
signal.h | File | 369 B | 0644 |
|
sockios.h | File | 536 B | 0644 |
|
stat.h | File | 3.01 KB | 0644 |
|
swab.h | File | 1.05 KB | 0644 |
|
types.h | File | 31 B | 0644 |
|
unistd.h | File | 178 B | 0644 |
|
unistd_32.h | File | 11.03 KB | 0644 |
|
unistd_64.h | File | 11.67 KB | 0644 |
|