hc
2023-12-08 01573e231f18eb2d99162747186f59511f56b64d
kernel/arch/xtensa/include/uapi/asm/ptrace.h
....@@ -12,6 +12,8 @@
1212 #ifndef _UAPI_XTENSA_PTRACE_H
1313 #define _UAPI_XTENSA_PTRACE_H
1414
15
+#include <linux/types.h>
16
+
1517 /* Registers used by strace */
1618
1719 #define REG_A_BASE 0x0000
....@@ -36,5 +38,22 @@
3638 #define PTRACE_GETHBPREGS 20
3739 #define PTRACE_SETHBPREGS 21
3840
41
+#ifndef __ASSEMBLY__
3942
43
+struct user_pt_regs {
44
+ __u32 pc;
45
+ __u32 ps;
46
+ __u32 lbeg;
47
+ __u32 lend;
48
+ __u32 lcount;
49
+ __u32 sar;
50
+ __u32 windowstart;
51
+ __u32 windowbase;
52
+ __u32 threadptr;
53
+ __u32 syscall;
54
+ __u32 reserved[6 + 48];
55
+ __u32 a[64];
56
+};
57
+
58
+#endif
4059 #endif /* _UAPI_XTENSA_PTRACE_H */