Lines Matching refs:current
77 mm_context_t *mm_ctx = ¤t->mm->context; in alloc_emuframe()
119 pr_debug("allocate emuframe %d to %d\n", idx, current->pid); in alloc_emuframe()
131 pr_debug("free emuframe %d from %d\n", idx, current->pid); in free_emuframe()
183 fr_idx = atomic_read(¤t->thread.bd_emu_frame); in dsemul_thread_rollback()
196 regs->cp0_epc = current->thread.bd_emu_branch_pc; in dsemul_thread_rollback()
198 regs->cp0_epc = current->thread.bd_emu_cont_pc; in dsemul_thread_rollback()
200 atomic_set(¤t->thread.bd_emu_frame, BD_EMUFRAME_NONE); in dsemul_thread_rollback()
201 free_emuframe(fr_idx, current->mm); in dsemul_thread_rollback()
249 fr_idx = atomic_read(¤t->thread.bd_emu_frame); in mips_dsemul()
276 ret = access_process_vm(current, fr_uaddr, &fr, sizeof(fr), in mips_dsemul()
280 free_emuframe(fr_idx, current->mm); in mips_dsemul()
285 current->thread.bd_emu_branch_pc = branch_pc; in mips_dsemul()
286 current->thread.bd_emu_cont_pc = cont_pc; in mips_dsemul()
287 atomic_set(¤t->thread.bd_emu_frame, fr_idx); in mips_dsemul()
298 if (!dsemul_thread_cleanup(current)) { in do_dsemulret()
304 xcp->cp0_epc = current->thread.bd_emu_cont_pc; in do_dsemulret()