]> nv-tegra.nvidia Code Review - linux-3.10.git/commit - arch/alpha
new helper: signal_pt_regs()
authorAl Viro <viro@zeniv.linux.org.uk>
Mon, 5 Nov 2012 18:00:27 +0000 (13:00 -0500)
committerAl Viro <viro@zeniv.linux.org.uk>
Thu, 29 Nov 2012 05:01:23 +0000 (00:01 -0500)
commit22062a96300dabfef93368a28c34bdf35c9b8308
tree6e04303c437911d21079a34ac0853137eeb91f8b
parent4f4202fe5ae9a43e59303f20d700571f695d7b1b
new helper: signal_pt_regs()

Always equal to task_pt_regs(current); defined only when we are in
signal delivery.  It may be different from current_pt_regs() - e.g.
architectures like m68k may have pt_regs location on exception
different from that on a syscall and signals (just as ptrace handling)
may happen on exceptions as well as on syscalls.

When they are equal, it's often better to have signal_pt_regs
defined (in asm/ptrace.h) as current_pt_regs - that tends to be
optimized better than default would be.  However, optimisation is
the only reason why we might want an arch-specific definition;
if current_pt_regs() and task_pt_regs(current) have different
values, the latter one is right.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
arch/alpha/include/asm/ptrace.h
arch/h8300/include/asm/ptrace.h
include/linux/ptrace.h