Lines Matching refs:current

146 	if (kexec_should_crash(current))  in die_will_crash()
149 !current->pid || is_global_init(current)) in die_will_crash()
230 if (kexec_should_crash(current)) in oops_end()
242 if (in_interrupt() || panic_on_oops || !current->pid || in oops_end()
243 is_global_init(current)) { in oops_end()
319 if (!unhandled_signal(current, signr)) in show_signal_msg()
326 current->comm, current->pid, signame(signr), signr, in show_signal_msg()
355 current->thread.trap_nr = code; in exception_common()
582 #define single_stepping(regs) (current->thread.debug.dbcr0 & DBCR0_IC)
583 #define clear_single_step(regs) (current->thread.debug.dbcr0 &= ~DBCR0_IC)
905 smp_processor_id(), current->comm, current->pid, in p9_hmi_special_emu()
912 flush_vsx_to_thread(current); in p9_hmi_special_emu()
926 vdst = (u8 *)&current->thread.vr_state.vr[t]; in p9_hmi_special_emu()
928 vdst = (u8 *)&current->thread.fp_state.fpr[t][0]; in p9_hmi_special_emu()
940 smp_processor_id(), current->comm, current->pid, in p9_hmi_special_emu()
955 smp_processor_id(), current->comm, current->pid, in p9_hmi_special_emu()
962 smp_processor_id(), current->comm, current->pid, regs->nip, in p9_hmi_special_emu()
981 smp_processor_id(), current->comm, current->pid, in p9_hmi_special_emu()
1200 flush_fp_to_thread(current); in parse_fpe()
1203 code = __parse_fpscr(current->thread.fp_state.fpscr); in parse_fpe()
1432 current->thread.dscr = regs->gpr[rd]; in emulate_instruction()
1433 current->thread.dscr_inherit = 1; in emulate_instruction()
1434 mtspr(SPRN_DSCR, current->thread.dscr); in emulate_instruction()
1464 code = __parse_fpscr(current->thread.fp_state.fpscr); in emulate_math()
1659 if (!(current->thread.align_ctl & PR_UNALIGN_SIGBUS)) in DEFINE_INTERRUPT_HANDLER()
1729 current->thread.load_tm++; in tm_unavailable()
1732 tm_restore_sprs(&current->thread); in tm_unavailable()
1809 current->thread.dscr = regs->gpr[rd]; in DEFINE_INTERRUPT_HANDLER()
1810 current->thread.dscr_inherit = 1; in DEFINE_INTERRUPT_HANDLER()
1811 current->thread.fscr |= FSCR_DSCR; in DEFINE_INTERRUPT_HANDLER()
1812 mtspr(SPRN_FSCR, current->thread.fscr); in DEFINE_INTERRUPT_HANDLER()
1884 current->thread.load_fp = 1; in DEFINE_INTERRUPT_HANDLER()
1889 tm_recheckpoint(&current->thread); in DEFINE_INTERRUPT_HANDLER()
1902 current->thread.load_vec = 1; in DEFINE_INTERRUPT_HANDLER()
1903 tm_recheckpoint(&current->thread); in DEFINE_INTERRUPT_HANDLER()
1904 current->thread.used_vr = 1; in DEFINE_INTERRUPT_HANDLER()
1920 current->thread.used_vsr = 1; in DEFINE_INTERRUPT_HANDLER()
1925 current->thread.load_vec = 1; in DEFINE_INTERRUPT_HANDLER()
1926 current->thread.load_fp = 1; in DEFINE_INTERRUPT_HANDLER()
1928 tm_recheckpoint(&current->thread); in DEFINE_INTERRUPT_HANDLER()
1977 dbcr_dac(current) &= ~(DBCR_DAC1R | DBCR_DAC1W); in handle_debug()
1979 current->thread.debug.dbcr2 &= ~DBCR2_DAC12MODE; in handle_debug()
1985 dbcr_dac(current) &= ~(DBCR_DAC2R | DBCR_DAC2W); in handle_debug()
1990 current->thread.debug.dbcr0 &= ~DBCR0_IAC1; in handle_debug()
1991 dbcr_iac_range(current) &= ~DBCR_IAC12MODE; in handle_debug()
1996 current->thread.debug.dbcr0 &= ~DBCR0_IAC2; in handle_debug()
2001 current->thread.debug.dbcr0 &= ~DBCR0_IAC3; in handle_debug()
2002 dbcr_iac_range(current) &= ~DBCR_IAC34MODE; in handle_debug()
2007 current->thread.debug.dbcr0 &= ~DBCR0_IAC4; in handle_debug()
2017 if (DBCR_ACTIVE_EVENTS(current->thread.debug.dbcr0, in handle_debug()
2018 current->thread.debug.dbcr1)) in handle_debug()
2022 current->thread.debug.dbcr0 &= ~DBCR0_IDM; in handle_debug()
2025 mtspr(SPRN_DBCR0, current->thread.debug.dbcr0); in handle_debug()
2032 current->thread.debug.dbsr = debug_status; in DEFINE_INTERRUPT_HANDLER()
2049 current->thread.debug.dbcr0 &= ~DBCR0_BT; in DEFINE_INTERRUPT_HANDLER()
2050 current->thread.debug.dbcr0 |= DBCR0_IDM | DBCR0_IC; in DEFINE_INTERRUPT_HANDLER()
2084 current->thread.debug.dbcr0 &= ~DBCR0_IC; in DEFINE_INTERRUPT_HANDLER()
2085 if (DBCR_ACTIVE_EVENTS(current->thread.debug.dbcr0, in DEFINE_INTERRUPT_HANDLER()
2086 current->thread.debug.dbcr1)) in DEFINE_INTERRUPT_HANDLER()
2090 current->thread.debug.dbcr0 &= ~DBCR0_IDM; in DEFINE_INTERRUPT_HANDLER()
2110 flush_altivec_to_thread(current); in DEFINE_INTERRUPT_HANDLER()
2127 "in %s at %lx\n", current->comm, regs->nip); in DEFINE_INTERRUPT_HANDLER()
2128 current->thread.vr_state.vscr.u[3] |= 0x10000; in DEFINE_INTERRUPT_HANDLER()
2158 flush_spe_to_thread(current); in DEFINE_INTERRUPT_HANDLER()
2160 spefscr = current->thread.spefscr; in DEFINE_INTERRUPT_HANDLER()
2161 fpexc_mode = current->thread.fpexc_mode; in DEFINE_INTERRUPT_HANDLER()
2190 "in %s at %lx\n", current->comm, regs->nip); in DEFINE_INTERRUPT_HANDLER()
2206 giveup_spe(current); in DEFINE_INTERRUPT_HANDLER()
2223 "in %s at %lx\n", current->comm, regs->nip); in DEFINE_INTERRUPT_HANDLER()
2308 pr_warn_ratelimited("%s used emulated %s instruction\n", current->comm, in ppc_warn_emulated_print()