| .. | .. |
|---|
| 29 | 29 | |
|---|
| 30 | 30 | #ifndef __ASSEMBLY__ |
|---|
| 31 | 31 | |
|---|
| 32 | | -struct pt_regs { |
|---|
| 32 | +#ifdef __KERNEL__ |
|---|
| 33 | +struct user_pt_regs |
|---|
| 34 | +#else |
|---|
| 35 | +struct pt_regs |
|---|
| 36 | +#endif |
|---|
| 37 | +{ |
|---|
| 33 | 38 | unsigned long gpr[32]; |
|---|
| 34 | 39 | unsigned long nip; |
|---|
| 35 | 40 | unsigned long msr; |
|---|
| .. | .. |
|---|
| 160 | 165 | #define PTRACE_GETVSRREGS 0x1b |
|---|
| 161 | 166 | #define PTRACE_SETVSRREGS 0x1c |
|---|
| 162 | 167 | |
|---|
| 168 | +/* Syscall emulation defines */ |
|---|
| 169 | +#define PTRACE_SYSEMU 0x1d |
|---|
| 170 | +#define PTRACE_SYSEMU_SINGLESTEP 0x1e |
|---|
| 171 | + |
|---|
| 163 | 172 | /* |
|---|
| 164 | 173 | * Get or set a debug register. The first 16 are DABR registers and the |
|---|
| 165 | 174 | * second 16 are IABR registers. |
|---|
| .. | .. |
|---|
| 213 | 222 | #define PPC_DEBUG_FEATURE_DATA_BP_RANGE 0x0000000000000004 |
|---|
| 214 | 223 | #define PPC_DEBUG_FEATURE_DATA_BP_MASK 0x0000000000000008 |
|---|
| 215 | 224 | #define PPC_DEBUG_FEATURE_DATA_BP_DAWR 0x0000000000000010 |
|---|
| 225 | +#define PPC_DEBUG_FEATURE_DATA_BP_ARCH_31 0x0000000000000020 |
|---|
| 216 | 226 | |
|---|
| 217 | 227 | #ifndef __ASSEMBLY__ |
|---|
| 218 | 228 | |
|---|