From: Al Viro Date: Sat, 17 Nov 2012 03:27:58 +0000 (-0500) Subject: Merge branch 'arch-frv' into no-rebases X-Git-Tag: upstream/snapshot3+hdmi~5971^2~54^2~6 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d05f06e60df4f56a70fb8a3e46335b40687169e9;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git Merge branch 'arch-frv' into no-rebases --- d05f06e60df4f56a70fb8a3e46335b40687169e9 diff --cc arch/sparc/include/asm/ptrace.h index 1e8b818,da43bdc..bdfafd7 --- a/arch/sparc/include/asm/ptrace.h +++ b/arch/sparc/include/asm/ptrace.h @@@ -45,9 -42,22 +45,20 @@@ struct global_reg_snapshot struct thread_info *thread; unsigned long pad1; }; - extern struct global_reg_snapshot global_reg_snapshot[NR_CPUS]; + + struct global_pmu_snapshot { + unsigned long pcr[4]; + unsigned long pic[4]; + }; + + union global_cpu_snapshot { + struct global_reg_snapshot reg; + struct global_pmu_snapshot pmu; + }; + + extern union global_cpu_snapshot global_cpu_snapshot[NR_CPUS]; -#define force_successful_syscall_return() \ -do { current_thread_info()->syscall_noerror = 1; \ -} while (0) +#define force_successful_syscall_return() set_thread_noerror(1) #define user_mode(regs) (!((regs)->tstate & TSTATE_PRIV)) #define instruction_pointer(regs) ((regs)->tpc) #define instruction_pointer_set(regs, val) ((regs)->tpc = (val))