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()
101 return task_pid_nr(current); in get_current_pid()
113 if (current->thread.prev_sched != NULL) in new_thread_handler()
114 schedule_tail(current->thread.prev_sched); in new_thread_handler()
115 current->thread.prev_sched = NULL; in new_thread_handler()
117 fn = current->thread.request.thread.proc; in new_thread_handler()
118 arg = current->thread.request.thread.arg; in new_thread_handler()
124 userspace(¤t->thread.regs.regs); in new_thread_handler()
130 schedule_tail(current->thread.prev_sched); in fork_handler()
137 arch_switch_to(current); in fork_handler()
139 current->thread.prev_sched = NULL; in fork_handler()
141 userspace(¤t->thread.regs.regs); in fork_handler()
163 arch_copy_thread(¤t->thread.arch, &p->thread.arch); in copy_thread()
265 if (!(current->personality & ADDR_NO_RANDOMIZE) && randomize_va_space) in arch_align_stack()