hc
2023-12-08 01573e231f18eb2d99162747186f59511f56b64d
kernel/arch/powerpc/include/uapi/asm/ptrace.h
....@@ -29,7 +29,12 @@
2929
3030 #ifndef __ASSEMBLY__
3131
32
-struct pt_regs {
32
+#ifdef __KERNEL__
33
+struct user_pt_regs
34
+#else
35
+struct pt_regs
36
+#endif
37
+{
3338 unsigned long gpr[32];
3439 unsigned long nip;
3540 unsigned long msr;
....@@ -160,6 +165,10 @@
160165 #define PTRACE_GETVSRREGS 0x1b
161166 #define PTRACE_SETVSRREGS 0x1c
162167
168
+/* Syscall emulation defines */
169
+#define PTRACE_SYSEMU 0x1d
170
+#define PTRACE_SYSEMU_SINGLESTEP 0x1e
171
+
163172 /*
164173 * Get or set a debug register. The first 16 are DABR registers and the
165174 * second 16 are IABR registers.
....@@ -213,6 +222,7 @@
213222 #define PPC_DEBUG_FEATURE_DATA_BP_RANGE 0x0000000000000004
214223 #define PPC_DEBUG_FEATURE_DATA_BP_MASK 0x0000000000000008
215224 #define PPC_DEBUG_FEATURE_DATA_BP_DAWR 0x0000000000000010
225
+#define PPC_DEBUG_FEATURE_DATA_BP_ARCH_31 0x0000000000000020
216226
217227 #ifndef __ASSEMBLY__
218228