diff options
Diffstat (limited to 'arch/sparc/include/asm/ptrace.h')
| -rw-r--r-- | arch/sparc/include/asm/ptrace.h | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/arch/sparc/include/asm/ptrace.h b/arch/sparc/include/asm/ptrace.h index 0c6f6b068289..da43bdc62294 100644 --- a/arch/sparc/include/asm/ptrace.h +++ b/arch/sparc/include/asm/ptrace.h | |||
| @@ -42,7 +42,18 @@ struct global_reg_snapshot { | |||
| 42 | struct thread_info *thread; | 42 | struct thread_info *thread; |
| 43 | unsigned long pad1; | 43 | unsigned long pad1; |
| 44 | }; | 44 | }; |
| 45 | extern struct global_reg_snapshot global_reg_snapshot[NR_CPUS]; | 45 | |
| 46 | struct global_pmu_snapshot { | ||
| 47 | unsigned long pcr[4]; | ||
| 48 | unsigned long pic[4]; | ||
| 49 | }; | ||
| 50 | |||
| 51 | union global_cpu_snapshot { | ||
| 52 | struct global_reg_snapshot reg; | ||
| 53 | struct global_pmu_snapshot pmu; | ||
| 54 | }; | ||
| 55 | |||
| 56 | extern union global_cpu_snapshot global_cpu_snapshot[NR_CPUS]; | ||
| 46 | 57 | ||
| 47 | #define force_successful_syscall_return() \ | 58 | #define force_successful_syscall_return() \ |
| 48 | do { current_thread_info()->syscall_noerror = 1; \ | 59 | do { current_thread_info()->syscall_noerror = 1; \ |
