Lines Matching defs:thread
199 * Free current thread data structures etc..
208 struct thread_info *thread = current_thread_info();
213 memset(thread->used_cp, 0, sizeof(thread->used_cp));
214 memset(&tsk->thread.debug, 0, sizeof(struct debug_info));
215 memset(&thread->fpstate, 0, sizeof(union fp_state));
219 thread_notify(THREAD_NOTIFY_FLUSH, thread);
231 struct thread_info *thread = task_thread_info(p);
234 memset(&thread->cpu_context, 0, sizeof(struct cpu_context_save));
239 * from the current thread: thread->addr_limit will have been
240 * copied from the current thread via setup_thread_stack() in
243 thread->cpu_domain = get_domain();
253 thread->cpu_context.r4 = stk_sz;
254 thread->cpu_context.r5 = stack_start;
257 thread->cpu_context.pc = (unsigned long)ret_from_fork;
258 thread->cpu_context.sp = (unsigned long)childregs;
263 thread->tp_value[0] = tls;
264 thread->tp_value[1] = get_tpuser();
266 thread_notify(THREAD_NOTIFY_COPY, thread);
269 thread->stack_canary = p->stack_canary;