Lines Matching refs:current
77 arch_switch_to(current); in __switch_to()
79 return current->thread.prev_sched; in __switch_to()
84 struct pt_regs *regs = ¤t->thread.regs; in interrupt_end()
97 return task_pid_nr(current); in get_current_pid()
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()
120 userspace(¤t->thread.regs.regs); in new_thread_handler()
126 schedule_tail(current->thread.prev_sched); in fork_handler()
133 arch_switch_to(current); in fork_handler()
135 current->thread.prev_sched = NULL; in fork_handler()
137 userspace(¤t->thread.regs.regs); in fork_handler()
159 arch_copy_thread(¤t->thread.arch, &p->thread.arch); in copy_thread()
261 if (!(current->personality & ADDR_NO_RANDOMIZE) && randomize_va_space) in arch_align_stack()