Lines Matching refs:tsk
194 do_trap_no_signal(struct task_struct *tsk, int trapnr, char *str, in do_trap_no_signal() argument
212 tsk->thread.error_code = error_code; in do_trap_no_signal()
213 tsk->thread.trap_nr = trapnr; in do_trap_no_signal()
257 struct task_struct *tsk = current; in do_trap() local
260 if (!do_trap_no_signal(tsk, trapnr, str, regs, error_code)) in do_trap()
271 tsk->thread.error_code = error_code; in do_trap()
272 tsk->thread.trap_nr = trapnr; in do_trap()
275 if (show_unhandled_signals && unhandled_signal(tsk, signr) && in do_trap()
278 tsk->comm, tsk->pid, str, in do_trap()
285 force_sig_info(signr, info ?: SEND_SIG_PRIV, tsk); in do_trap()
325 struct task_struct *tsk = current; in do_double_fault() local
357 tsk->thread.error_code = error_code; in do_double_fault()
358 tsk->thread.trap_nr = X86_TRAP_DF; in do_double_fault()
374 struct task_struct *tsk = current; in do_bounds() local
399 fpu_save_init(&tsk->thread.fpu); in do_bounds()
400 xsave_buf = &(tsk->thread.fpu.state->xsave); in do_bounds()
458 struct task_struct *tsk; in do_general_protection() local
470 tsk = current; in do_general_protection()
475 tsk->thread.error_code = error_code; in do_general_protection()
476 tsk->thread.trap_nr = X86_TRAP_GP; in do_general_protection()
483 tsk->thread.error_code = error_code; in do_general_protection()
484 tsk->thread.trap_nr = X86_TRAP_GP; in do_general_protection()
486 if (show_unhandled_signals && unhandled_signal(tsk, SIGSEGV) && in do_general_protection()
489 tsk->comm, task_pid_nr(tsk), in do_general_protection()
495 force_sig_info(SIGSEGV, SEND_SIG_PRIV, tsk); in do_general_protection()
619 struct task_struct *tsk = current; in do_debug() local
650 clear_tsk_thread_flag(tsk, TIF_BLOCKSTEP); in do_debug()
653 tsk->thread.debugreg6 = dr6; in do_debug()
689 tsk->thread.debugreg6 &= ~DR_STEP; in do_debug()
690 set_tsk_thread_flag(tsk, TIF_SINGLESTEP); in do_debug()
693 si_code = get_si_code(tsk->thread.debugreg6); in do_debug()
694 if (tsk->thread.debugreg6 & (DR_STEP | DR_TRAP_BITS) || user_icebp) in do_debug()
695 send_sigtrap(tsk, regs, error_code, si_code); in do_debug()
842 struct task_struct *tsk = current; in math_state_restore() local
844 if (!tsk_used_math(tsk)) { in math_state_restore()
849 if (init_fpu(tsk)) { in math_state_restore()
861 __thread_fpu_begin(tsk); in math_state_restore()
862 if (unlikely(restore_fpu_checking(tsk))) { in math_state_restore()
863 fpu_reset_state(tsk); in math_state_restore()
864 force_sig_info(SIGSEGV, SEND_SIG_PRIV, tsk); in math_state_restore()
866 tsk->thread.fpu_counter++; in math_state_restore()