Lines Matching refs:current
96 if (tsk == current && tsk->thread.regs && in check_if_tm_restore_required()
202 BUG_ON(tsk != current); in flush_fp_to_thread()
218 if (current->thread.regs && (current->thread.regs->msr & MSR_FP)) { in enable_kernel_fp()
219 check_if_tm_restore_required(current); in enable_kernel_fp()
228 MSR_TM_ACTIVE(current->thread.regs->msr)) in enable_kernel_fp()
230 __giveup_fpu(current); in enable_kernel_fp()
269 if (current->thread.regs && (current->thread.regs->msr & MSR_VEC)) { in enable_kernel_altivec()
270 check_if_tm_restore_required(current); in enable_kernel_altivec()
279 MSR_TM_ACTIVE(current->thread.regs->msr)) in enable_kernel_altivec()
281 __giveup_altivec(current); in enable_kernel_altivec()
295 BUG_ON(tsk != current); in flush_altivec_to_thread()
339 if (current->thread.regs && in enable_kernel_vsx()
340 (current->thread.regs->msr & (MSR_VSX|MSR_VEC|MSR_FP))) { in enable_kernel_vsx()
341 check_if_tm_restore_required(current); in enable_kernel_vsx()
350 MSR_TM_ACTIVE(current->thread.regs->msr)) in enable_kernel_vsx()
352 __giveup_vsx(current); in enable_kernel_vsx()
362 BUG_ON(tsk != current); in flush_vsx_to_thread()
388 if (current->thread.regs && (current->thread.regs->msr & MSR_SPE)) { in enable_kernel_spe()
389 check_if_tm_restore_required(current); in enable_kernel_spe()
390 __giveup_spe(current); in enable_kernel_spe()
400 BUG_ON(tsk != current); in flush_spe_to_thread()
459 if (current->thread.load_fp) { in should_restore_fp()
460 current->thread.load_fp++; in should_restore_fp()
468 load_fp_state(¤t->thread.fp_state); in do_restore_fp()
478 if (cpu_has_feature(CPU_FTR_ALTIVEC) && (current->thread.load_vec)) { in should_restore_altivec()
479 current->thread.load_vec++; in should_restore_altivec()
487 load_vr_state(¤t->thread.vr_state); in do_restore_altivec()
488 current->thread.used_vr = 1; in do_restore_altivec()
504 current->thread.used_vsr = 1; in do_restore_vsx()
552 fpexc_mode = current->thread.fpexc_mode; in restore_math()
600 BUG_ON(tsk != current); in flush_all_to_thread()
616 current->thread.trap_nr = TRAP_HWBKPT; in do_send_trap()
643 current->thread.hw_brk[0] = null_brk; in do_break_handler()
644 current->thread.hw_brk[0].flags |= HW_BRK_FLAG_DISABLED; in do_break_handler()
652 info = ¤t->thread.hw_brk[i]; in do_break_handler()
658 current->thread.hw_brk[i] = null_brk; in do_break_handler()
659 current->thread.hw_brk[i].flags |= HW_BRK_FLAG_DISABLED; in do_break_handler()
666 current->thread.trap_nr = TRAP_HWBKPT; in DEFINE_INTERRUPT_HANDLER()
756 if ((current->thread.debug.dbcr0 & DBCR0_IDM) in switch_booke_debug_regs()
951 tm_reclaim_thread(¤t->thread, cause); in tm_reclaim_current()
1106 msr_diff = current->thread.ckpt_regs.msr & ~regs->msr; in restore_tm_state()
1111 current->thread.load_fp = 1; in restore_tm_state()
1114 current->thread.load_vec = 1; in restore_tm_state()
1214 old_thread = ¤t->thread; in __switch_to()
1314 if (current->thread.regs) in __switch_to()
1315 restore_math(current->thread.regs); in __switch_to()
1390 pr_info("%s[%d]: code: %s\n", current->comm, in show_user_instructions()
1391 current->pid, s.buffer); in show_user_instructions()
1535 show_stack(current, (unsigned long *) regs->gpr[1], KERN_DEFAULT); in show_regs()
1543 flush_ptrace_hw_breakpoint(current); in flush_thread()
1545 set_debug_reg_defaults(¤t->thread); in flush_thread()
1560 if (!current->thread.regs) { in arch_setup_new_exec()
1561 struct pt_regs *regs = task_stack_page(current) + THREAD_SIZE; in arch_setup_new_exec()
1562 current->thread.regs = regs - 1; in arch_setup_new_exec()
1566 current->thread.regs->amr = default_amr; in arch_setup_new_exec()
1567 current->thread.regs->iamr = default_iamr; in arch_setup_new_exec()
1610 if (t != current) in set_thread_tidr()
1775 p->thread.dscr_inherit = current->thread.dscr_inherit; in copy_thread()
1882 current->thread.used_vsr = 0; in start_thread()
1884 current->thread.load_slb = 0; in start_thread()
1885 current->thread.load_fp = 0; in start_thread()
1887 memset(¤t->thread.fp_state, 0, sizeof(current->thread.fp_state)); in start_thread()
1888 current->thread.fp_save_area = NULL; in start_thread()
1891 memset(¤t->thread.vr_state, 0, sizeof(current->thread.vr_state)); in start_thread()
1892 current->thread.vr_state.vscr.u[3] = 0x00010000; /* Java mode disabled */ in start_thread()
1893 current->thread.vr_save_area = NULL; in start_thread()
1894 current->thread.vrsave = 0; in start_thread()
1895 current->thread.used_vr = 0; in start_thread()
1896 current->thread.load_vec = 0; in start_thread()
1899 memset(current->thread.evr, 0, sizeof(current->thread.evr)); in start_thread()
1900 current->thread.acc = 0; in start_thread()
1901 current->thread.spefscr = 0; in start_thread()
1902 current->thread.used_spe = 0; in start_thread()
1905 current->thread.tm_tfhar = 0; in start_thread()
1906 current->thread.tm_texasr = 0; in start_thread()
1907 current->thread.tm_tfiar = 0; in start_thread()
1908 current->thread.load_tm = 0; in start_thread()
2164 tsk = current; in show_stack()
2171 if (tsk == current) in show_stack()
2189 ret_addr = ftrace_graph_ret_addr(current, in show_stack()
2273 if (!(current->personality & ADDR_NO_RANDOMIZE) && randomize_va_space) in arch_align_stack()