CVSROOT: /home/cvs
Module name: linux
Changes by: ths@ftp.linux-mips.org 05/01/07 16:54:47
Modified files:
arch/mips/kernel: scall64-64.S
Log message:
Fix handling of _TIF_SYSCALL_AUDIT flag.
diff -urN linux/arch/mips/kernel/scall64-64.S
linux/arch/mips/kernel/scall64-64.S
--- linux/arch/mips/kernel/scall64-64.S 2005/01/06 18:44:44 1.27
+++ linux/arch/mips/kernel/scall64-64.S 2005/01/07 16:54:47 1.28
@@ -53,8 +53,10 @@
sd a3, PT_R26(sp) # save a3 for syscall restarting
- LONG_L t0, TI_FLAGS($28)
- bltz t0, syscall_trace_entry # syscall tracing enabled?
+ li t1, _TIF_SYSCALL_TRACE | _TIF_SYSCALL_AUDIT
+ LONG_L t0, TI_FLAGS($28) # syscall tracing enabled?
+ and t0, t1, t0
+ bnez t0, syscall_trace_entry
jalr t2 # Do The Real Thing (TM)
@@ -173,8 +175,8 @@
sd v0, PT_R2(sp) # result
/* Success, so skip usual error handling garbage. */
- LONG_L a2, TI_FLAGS($28) # syscall tracing enabled?
li t0, _TIF_SYSCALL_TRACE | _TIF_SYSCALL_AUDIT
+ LONG_L a2, TI_FLAGS($28) # syscall tracing enabled?
and t0, a2, t0
bnez t0, 1f
|