Lines Matching full:thread
59 /* Kernel thread */ in __ret_from_fork()
91 dst->thread.kfpu_flags = 0; in arch_dup_task_struct()
98 * refers to the source thread. in arch_dup_task_struct()
100 dst->thread.ri_cb = NULL; in arch_dup_task_struct()
101 dst->thread.gs_cb = NULL; in arch_dup_task_struct()
102 dst->thread.gs_bc_cb = NULL; in arch_dup_task_struct()
119 p->thread.ksp = (unsigned long) frame; in copy_thread()
120 /* Save access registers to new thread structure. */ in copy_thread()
121 save_access_regs(&p->thread.acrs[0]); in copy_thread()
124 memset(&p->thread.per_user, 0, sizeof(p->thread.per_user)); in copy_thread()
125 memset(&p->thread.per_event, 0, sizeof(p->thread.per_event)); in copy_thread()
127 p->thread.per_flags = 0; in copy_thread()
128 /* Initialize per thread user and system timer values */ in copy_thread()
129 p->thread.user_timer = 0; in copy_thread()
130 p->thread.guest_timer = 0; in copy_thread()
131 p->thread.system_timer = 0; in copy_thread()
132 p->thread.hardirq_timer = 0; in copy_thread()
133 p->thread.softirq_timer = 0; in copy_thread()
134 p->thread.last_break = 1; in copy_thread()
146 /* kernel thread */ in copy_thread()
170 p->thread.acrs[0] = (unsigned int)tls; in copy_thread()
172 p->thread.acrs[0] = (unsigned int)(tls >> 32); in copy_thread()
173 p->thread.acrs[1] = (unsigned int)tls; in copy_thread()
187 current->thread.ufpu.fpc = 0; in execve_tail()
194 save_kernel_fpu_regs(&prev->thread); in __switch_to()
195 save_access_regs(&prev->thread.acrs[0]); in __switch_to()
196 save_ri_cb(prev->thread.ri_cb); in __switch_to()
197 save_gs_cb(prev->thread.gs_cb); in __switch_to()
199 restore_kernel_fpu_regs(&next->thread); in __switch_to()
200 restore_access_regs(&next->thread.acrs[0]); in __switch_to()
201 restore_ri_cb(next->thread.ri_cb, prev->thread.ri_cb); in __switch_to()
202 restore_gs_cb(next->thread.gs_cb); in __switch_to()