aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sparc64/kernel/ptrace.c
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2005-07-10 19:55:48 -0400
committerDavid S. Miller <davem@davemloft.net>2005-07-10 19:55:48 -0400
commit8d8a64796fdee4e20355c6c12c9cc630a2e7494d (patch)
treedc0d548a520bdad1e2aa7752153bf7c787fc04bd /arch/sparc64/kernel/ptrace.c
parentbb49bcda15f1bc1a52c7f887db278447f332eaa7 (diff)
[SPARC64]: Pass regs and entry/exit boolean to syscall_trace()
Also fix a bug in 32-bit syscall tracing. We forgot to update this code when we moved over to the convention that all 32-bit syscall arguments are zero extended by default. Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/sparc64/kernel/ptrace.c')
-rw-r--r--arch/sparc64/kernel/ptrace.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/sparc64/kernel/ptrace.c b/arch/sparc64/kernel/ptrace.c
index 5abf596f5964..c57dc9ea731b 100644
--- a/arch/sparc64/kernel/ptrace.c
+++ b/arch/sparc64/kernel/ptrace.c
@@ -628,10 +628,10 @@ out:
628 unlock_kernel(); 628 unlock_kernel();
629} 629}
630 630
631asmlinkage void syscall_trace(void) 631asmlinkage void syscall_trace(struct pt_regs *regs, int syscall_exit_p)
632{ 632{
633 /* do the secure computing check first */ 633 /* do the secure computing check first */
634 secure_computing(current_thread_info()->kregs->u_regs[UREG_G1]); 634 secure_computing(regs->u_regs[UREG_G1]);
635 635
636 if (!test_thread_flag(TIF_SYSCALL_TRACE)) 636 if (!test_thread_flag(TIF_SYSCALL_TRACE))
637 return; 637 return;