diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2013-05-28 19:02:18 -0400 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2013-06-10 12:01:26 -0400 |
commit | e7f3b48af7be9f8007a224663a5b91340626fed5 (patch) | |
tree | 743924f39e5d177d4cd402fcf281f42a8a7af8a7 /arch/mips/kernel | |
parent | 41c8366be83a7c868c5281ad8d9e6715c1564351 (diff) |
MIPS: Cleanup flags in syscall flags handlers.
This will simplify further modifications.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/kernel')
-rw-r--r-- | arch/mips/kernel/scall32-o32.S | 2 | ||||
-rw-r--r-- | arch/mips/kernel/scall64-64.S | 2 | ||||
-rw-r--r-- | arch/mips/kernel/scall64-n32.S | 2 | ||||
-rw-r--r-- | arch/mips/kernel/scall64-o32.S | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/arch/mips/kernel/scall32-o32.S b/arch/mips/kernel/scall32-o32.S index 9b36424b03c5..ed5bafb5d637 100644 --- a/arch/mips/kernel/scall32-o32.S +++ b/arch/mips/kernel/scall32-o32.S | |||
@@ -52,7 +52,7 @@ NESTED(handle_sys, PT_SIZE, sp) | |||
52 | 52 | ||
53 | stack_done: | 53 | stack_done: |
54 | lw t0, TI_FLAGS($28) # syscall tracing enabled? | 54 | lw t0, TI_FLAGS($28) # syscall tracing enabled? |
55 | li t1, _TIF_SYSCALL_TRACE | _TIF_SYSCALL_AUDIT | 55 | li t1, _TIF_WORK_SYSCALL_ENTRY |
56 | and t0, t1 | 56 | and t0, t1 |
57 | bnez t0, syscall_trace_entry # -> yes | 57 | bnez t0, syscall_trace_entry # -> yes |
58 | 58 | ||
diff --git a/arch/mips/kernel/scall64-64.S b/arch/mips/kernel/scall64-64.S index 97a5909a61cf..be6627ead619 100644 --- a/arch/mips/kernel/scall64-64.S +++ b/arch/mips/kernel/scall64-64.S | |||
@@ -54,7 +54,7 @@ NESTED(handle_sys64, PT_SIZE, sp) | |||
54 | 54 | ||
55 | sd a3, PT_R26(sp) # save a3 for syscall restarting | 55 | sd a3, PT_R26(sp) # save a3 for syscall restarting |
56 | 56 | ||
57 | li t1, _TIF_SYSCALL_TRACE | _TIF_SYSCALL_AUDIT | 57 | li t1, _TIF_WORK_SYSCALL_ENTRY |
58 | LONG_L t0, TI_FLAGS($28) # syscall tracing enabled? | 58 | LONG_L t0, TI_FLAGS($28) # syscall tracing enabled? |
59 | and t0, t1, t0 | 59 | and t0, t1, t0 |
60 | bnez t0, syscall_trace_entry | 60 | bnez t0, syscall_trace_entry |
diff --git a/arch/mips/kernel/scall64-n32.S b/arch/mips/kernel/scall64-n32.S index edcb6594e7b5..cab150789c8d 100644 --- a/arch/mips/kernel/scall64-n32.S +++ b/arch/mips/kernel/scall64-n32.S | |||
@@ -47,7 +47,7 @@ NESTED(handle_sysn32, PT_SIZE, sp) | |||
47 | 47 | ||
48 | sd a3, PT_R26(sp) # save a3 for syscall restarting | 48 | sd a3, PT_R26(sp) # save a3 for syscall restarting |
49 | 49 | ||
50 | li t1, _TIF_SYSCALL_TRACE | _TIF_SYSCALL_AUDIT | 50 | li t1, _TIF_WORK_SYSCALL_ENTRY |
51 | LONG_L t0, TI_FLAGS($28) # syscall tracing enabled? | 51 | LONG_L t0, TI_FLAGS($28) # syscall tracing enabled? |
52 | and t0, t1, t0 | 52 | and t0, t1, t0 |
53 | bnez t0, n32_syscall_trace_entry | 53 | bnez t0, n32_syscall_trace_entry |
diff --git a/arch/mips/kernel/scall64-o32.S b/arch/mips/kernel/scall64-o32.S index 74f485d3c0ef..37605dc8eef7 100644 --- a/arch/mips/kernel/scall64-o32.S +++ b/arch/mips/kernel/scall64-o32.S | |||
@@ -81,7 +81,7 @@ NESTED(handle_sys, PT_SIZE, sp) | |||
81 | PTR 4b, bad_stack | 81 | PTR 4b, bad_stack |
82 | .previous | 82 | .previous |
83 | 83 | ||
84 | li t1, _TIF_SYSCALL_TRACE | _TIF_SYSCALL_AUDIT | 84 | li t1, _TIF_WORK_SYSCALL_ENTRY |
85 | LONG_L t0, TI_FLAGS($28) # syscall tracing enabled? | 85 | LONG_L t0, TI_FLAGS($28) # syscall tracing enabled? |
86 | and t0, t1, t0 | 86 | and t0, t1, t0 |
87 | bnez t0, trace_a_syscall | 87 | bnez t0, trace_a_syscall |