Lines Matching defs:thread
211 * Free current thread data structures etc..
220 struct thread_info *thread = current_thread_info();
225 memset(&tsk->thread.debug, 0, sizeof(struct debug_info));
226 memset(&thread->fpstate, 0, sizeof(union fp_state));
230 thread_notify(THREAD_NOTIFY_FLUSH, thread);
240 struct thread_info *thread = task_thread_info(p);
243 memset(&thread->cpu_context, 0, sizeof(struct cpu_context_save));
248 * from the current thread: thread->addr_limit will have been
249 * copied from the current thread via setup_thread_stack() in
252 thread->cpu_domain = get_domain();
262 thread->cpu_context.r4 = (unsigned long)args->fn_arg;
263 thread->cpu_context.r5 = (unsigned long)args->fn;
266 thread->cpu_context.pc = (unsigned long)ret_from_fork;
267 thread->cpu_context.sp = (unsigned long)childregs;
272 thread->tp_value[0] = tls;
273 thread->tp_value[1] = get_tpuser();
275 thread_notify(THREAD_NOTIFY_COPY, thread);