Lines Matching full:thread

73 	to->thread.prev_sched = from;  in __switch_to()
76 switch_threads(&from->thread.switch_buf, &to->thread.switch_buf); in __switch_to()
79 return current->thread.prev_sched; in __switch_to()
84 struct pt_regs *regs = &current->thread.regs; in interrupt_end()
109 if (current->thread.prev_sched != NULL) in new_thread_handler()
110 schedule_tail(current->thread.prev_sched); in new_thread_handler()
111 current->thread.prev_sched = NULL; in new_thread_handler()
113 fn = current->thread.request.thread.proc; in new_thread_handler()
114 arg = current->thread.request.thread.arg; in new_thread_handler()
117 * callback returns only if the kernel thread execs a process in new_thread_handler()
120 userspace(&current->thread.regs.regs); in new_thread_handler()
126 schedule_tail(current->thread.prev_sched); in fork_handler()
135 current->thread.prev_sched = NULL; in fork_handler()
137 userspace(&current->thread.regs.regs); in fork_handler()
148 p->thread = (struct thread_struct) INIT_THREAD; in copy_thread()
151 memcpy(&p->thread.regs.regs, current_pt_regs(), in copy_thread()
152 sizeof(p->thread.regs.regs)); in copy_thread()
153 PT_REGS_SET_SYSCALL_RETURN(&p->thread.regs, 0); in copy_thread()
155 REGS_SP(p->thread.regs.regs.gp) = sp; in copy_thread()
159 arch_copy_thread(&current->thread.arch, &p->thread.arch); in copy_thread()
161 get_safe_registers(p->thread.regs.regs.gp, p->thread.regs.regs.fp); in copy_thread()
162 p->thread.request.thread.proc = args->fn; in copy_thread()
163 p->thread.request.thread.arg = args->fn_arg; in copy_thread()
167 new_thread(task_stack_page(p), &p->thread.switch_buf, handler); in copy_thread()
173 * Set a new TLS for the child thread? in copy_thread()
277 sp = p->thread.switch_buf->JB_SP; in __get_wchan()