Lines Matching refs:current
74 mm_context_t *mm_ctx = ¤t->mm->context; in alloc_emuframe()
116 pr_debug("allocate emuframe %d to %d\n", idx, current->pid); in alloc_emuframe()
128 pr_debug("free emuframe %d from %d\n", idx, current->pid); in free_emuframe()
180 fr_idx = atomic_read(¤t->thread.bd_emu_frame); in dsemul_thread_rollback()
193 regs->cp0_epc = current->thread.bd_emu_branch_pc; in dsemul_thread_rollback()
195 regs->cp0_epc = current->thread.bd_emu_cont_pc; in dsemul_thread_rollback()
197 atomic_set(¤t->thread.bd_emu_frame, BD_EMUFRAME_NONE); in dsemul_thread_rollback()
198 free_emuframe(fr_idx, current->mm); in dsemul_thread_rollback()
243 fr_idx = atomic_read(¤t->thread.bd_emu_frame); in mips_dsemul()
263 free_emuframe(fr_idx, current->mm); in mips_dsemul()
268 current->thread.bd_emu_branch_pc = branch_pc; in mips_dsemul()
269 current->thread.bd_emu_cont_pc = cont_pc; in mips_dsemul()
270 atomic_set(¤t->thread.bd_emu_frame, fr_idx); in mips_dsemul()
285 if (!dsemul_thread_cleanup(current)) { in do_dsemulret()
291 xcp->cp0_epc = current->thread.bd_emu_cont_pc; in do_dsemulret()