Lines Matching refs:thread
82 to->thread.prev_sched = from; in __switch_to()
85 switch_threads(&from->thread.switch_buf, &to->thread.switch_buf); in __switch_to()
88 return current->thread.prev_sched; in __switch_to()
98 tracehook_notify_resume(¤t->thread.regs); in interrupt_end()
119 if (current->thread.prev_sched != NULL) in new_thread_handler()
120 schedule_tail(current->thread.prev_sched); in new_thread_handler()
121 current->thread.prev_sched = NULL; in new_thread_handler()
123 fn = current->thread.request.u.thread.proc; in new_thread_handler()
124 arg = current->thread.request.u.thread.arg; in new_thread_handler()
130 userspace(¤t->thread.regs.regs); in new_thread_handler()
138 schedule_tail(current->thread.prev_sched); in fork_handler()
147 current->thread.prev_sched = NULL; in fork_handler()
149 userspace(¤t->thread.regs.regs); in fork_handler()
159 p->thread = (struct thread_struct) INIT_THREAD; in copy_thread()
162 memcpy(&p->thread.regs.regs, current_pt_regs(), in copy_thread()
163 sizeof(p->thread.regs.regs)); in copy_thread()
164 PT_REGS_SET_SYSCALL_RETURN(&p->thread.regs, 0); in copy_thread()
166 REGS_SP(p->thread.regs.regs.gp) = sp; in copy_thread()
170 arch_copy_thread(¤t->thread.arch, &p->thread.arch); in copy_thread()
172 get_safe_registers(p->thread.regs.regs.gp, p->thread.regs.regs.fp); in copy_thread()
173 p->thread.request.u.thread.proc = (int (*)(void *))sp; in copy_thread()
174 p->thread.request.u.thread.arg = (void *)arg; in copy_thread()
178 new_thread(task_stack_page(p), &p->thread.switch_buf, handler); in copy_thread()
342 if (task->thread.singlestep_syscall) in singlestepping()
377 sp = p->thread.switch_buf->JB_SP; in get_wchan()