aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/kernel/entry_32.S
diff options
context:
space:
mode:
authorRoland McGrath <roland@redhat.com>2008-07-27 02:52:52 -0400
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>2008-07-28 02:30:50 -0400
commit7d6d637dac2050f30a1b57b0a3dc5de4a10616ba (patch)
tree5108cacaf5e204d58bc07afb1d67c73144f1bf55 /arch/powerpc/kernel/entry_32.S
parentf1ba12856b7a7d43e495e216bc91e6bbf7aac383 (diff)
powerpc: Add TIF_NOTIFY_RESUME support for tracehook
This adds TIF_NOTIFY_RESUME support for powerpc. When set, we call tracehook_notify_resume() on the way to user mode. This overloads do_signal() to do the work, but changes its arguments to it has the TIF_* bits handy in a register and drops the useless first argument that was always zero. Signed-off-by: Roland McGrath <roland@redhat.com> Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc/kernel/entry_32.S')
-rw-r--r--arch/powerpc/kernel/entry_32.S4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/powerpc/kernel/entry_32.S b/arch/powerpc/kernel/entry_32.S
index e6fca6a9014d..1cbbf7033641 100644
--- a/arch/powerpc/kernel/entry_32.S
+++ b/arch/powerpc/kernel/entry_32.S
@@ -1060,8 +1060,8 @@ do_user_signal: /* r10 contains MSR_KERNEL here */
1060 SAVE_NVGPRS(r1) 1060 SAVE_NVGPRS(r1)
1061 rlwinm r3,r3,0,0,30 1061 rlwinm r3,r3,0,0,30
1062 stw r3,_TRAP(r1) 1062 stw r3,_TRAP(r1)
10632: li r3,0 10632: addi r3,r1,STACK_FRAME_OVERHEAD
1064 addi r4,r1,STACK_FRAME_OVERHEAD 1064 mr r4,r9
1065 bl do_signal 1065 bl do_signal
1066 REST_NVGPRS(r1) 1066 REST_NVGPRS(r1)
1067 b recheck 1067 b recheck