diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2012-11-16 22:27:58 -0500 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2012-11-16 22:27:58 -0500 |
commit | d05f06e60df4f56a70fb8a3e46335b40687169e9 (patch) | |
tree | c1eec6749fed86a21b08606e1e4acefe4b033253 /arch/sparc/include/asm/ptrace.h | |
parent | 0af1c5300db31f25a412e6e83d42b1747d56c9de (diff) | |
parent | 1d72d9f83df057e71c7951def41138a0230bf737 (diff) |
Merge branch 'arch-frv' into no-rebases
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 1e8b81802263..bdfafd7af46f 100644 --- a/arch/sparc/include/asm/ptrace.h +++ b/arch/sparc/include/asm/ptrace.h | |||
@@ -45,7 +45,18 @@ struct global_reg_snapshot { | |||
45 | struct thread_info *thread; | 45 | struct thread_info *thread; |
46 | unsigned long pad1; | 46 | unsigned long pad1; |
47 | }; | 47 | }; |
48 | extern struct global_reg_snapshot global_reg_snapshot[NR_CPUS]; | 48 | |
49 | struct global_pmu_snapshot { | ||
50 | unsigned long pcr[4]; | ||
51 | unsigned long pic[4]; | ||
52 | }; | ||
53 | |||
54 | union global_cpu_snapshot { | ||
55 | struct global_reg_snapshot reg; | ||
56 | struct global_pmu_snapshot pmu; | ||
57 | }; | ||
58 | |||
59 | extern union global_cpu_snapshot global_cpu_snapshot[NR_CPUS]; | ||
49 | 60 | ||
50 | #define force_successful_syscall_return() set_thread_noerror(1) | 61 | #define force_successful_syscall_return() set_thread_noerror(1) |
51 | #define user_mode(regs) (!((regs)->tstate & TSTATE_PRIV)) | 62 | #define user_mode(regs) (!((regs)->tstate & TSTATE_PRIV)) |