MIPS: Cleanup flags in syscall flags handlers.
This will simplify further modifications. Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
This commit is contained in:
parent
41c8366be8
commit
e7f3b48af7
|
@ -131,6 +131,8 @@ static inline struct thread_info *current_thread_info(void)
|
||||||
#define _TIF_FPUBOUND (1<<TIF_FPUBOUND)
|
#define _TIF_FPUBOUND (1<<TIF_FPUBOUND)
|
||||||
#define _TIF_LOAD_WATCH (1<<TIF_LOAD_WATCH)
|
#define _TIF_LOAD_WATCH (1<<TIF_LOAD_WATCH)
|
||||||
|
|
||||||
|
#define _TIF_WORK_SYSCALL_ENTRY (_TIF_SYSCALL_TRACE | _TIF_SYSCALL_AUDIT)
|
||||||
|
|
||||||
/* work to do in syscall_trace_leave() */
|
/* work to do in syscall_trace_leave() */
|
||||||
#define _TIF_WORK_SYSCALL_EXIT (_TIF_SYSCALL_TRACE | _TIF_SYSCALL_AUDIT)
|
#define _TIF_WORK_SYSCALL_EXIT (_TIF_SYSCALL_TRACE | _TIF_SYSCALL_AUDIT)
|
||||||
|
|
||||||
|
|
|
@ -52,7 +52,7 @@ NESTED(handle_sys, PT_SIZE, sp)
|
||||||
|
|
||||||
stack_done:
|
stack_done:
|
||||||
lw t0, TI_FLAGS($28) # syscall tracing enabled?
|
lw t0, TI_FLAGS($28) # syscall tracing enabled?
|
||||||
li t1, _TIF_SYSCALL_TRACE | _TIF_SYSCALL_AUDIT
|
li t1, _TIF_WORK_SYSCALL_ENTRY
|
||||||
and t0, t1
|
and t0, t1
|
||||||
bnez t0, syscall_trace_entry # -> yes
|
bnez t0, syscall_trace_entry # -> yes
|
||||||
|
|
||||||
|
|
|
@ -54,7 +54,7 @@ NESTED(handle_sys64, PT_SIZE, sp)
|
||||||
|
|
||||||
sd a3, PT_R26(sp) # save a3 for syscall restarting
|
sd a3, PT_R26(sp) # save a3 for syscall restarting
|
||||||
|
|
||||||
li t1, _TIF_SYSCALL_TRACE | _TIF_SYSCALL_AUDIT
|
li t1, _TIF_WORK_SYSCALL_ENTRY
|
||||||
LONG_L t0, TI_FLAGS($28) # syscall tracing enabled?
|
LONG_L t0, TI_FLAGS($28) # syscall tracing enabled?
|
||||||
and t0, t1, t0
|
and t0, t1, t0
|
||||||
bnez t0, syscall_trace_entry
|
bnez t0, syscall_trace_entry
|
||||||
|
|
|
@ -47,7 +47,7 @@ NESTED(handle_sysn32, PT_SIZE, sp)
|
||||||
|
|
||||||
sd a3, PT_R26(sp) # save a3 for syscall restarting
|
sd a3, PT_R26(sp) # save a3 for syscall restarting
|
||||||
|
|
||||||
li t1, _TIF_SYSCALL_TRACE | _TIF_SYSCALL_AUDIT
|
li t1, _TIF_WORK_SYSCALL_ENTRY
|
||||||
LONG_L t0, TI_FLAGS($28) # syscall tracing enabled?
|
LONG_L t0, TI_FLAGS($28) # syscall tracing enabled?
|
||||||
and t0, t1, t0
|
and t0, t1, t0
|
||||||
bnez t0, n32_syscall_trace_entry
|
bnez t0, n32_syscall_trace_entry
|
||||||
|
|
|
@ -81,7 +81,7 @@ NESTED(handle_sys, PT_SIZE, sp)
|
||||||
PTR 4b, bad_stack
|
PTR 4b, bad_stack
|
||||||
.previous
|
.previous
|
||||||
|
|
||||||
li t1, _TIF_SYSCALL_TRACE | _TIF_SYSCALL_AUDIT
|
li t1, _TIF_WORK_SYSCALL_ENTRY
|
||||||
LONG_L t0, TI_FLAGS($28) # syscall tracing enabled?
|
LONG_L t0, TI_FLAGS($28) # syscall tracing enabled?
|
||||||
and t0, t1, t0
|
and t0, t1, t0
|
||||||
bnez t0, trace_a_syscall
|
bnez t0, trace_a_syscall
|
||||||
|
|
Loading…
Reference in New Issue