Lines Matching refs:thread

146 	struct desc_struct *desc = t->thread.tls_array;  in set_32bit_tls()
153 return get_desc_base(&t->thread.tls_array[tls]); in read_32bit_tls()
163 p->thread.sp0 = (unsigned long)task_stack_page(p) + THREAD_SIZE; in copy_thread_tls()
165 p->thread.sp = (unsigned long) childregs; in copy_thread_tls()
167 p->thread.io_bitmap_ptr = NULL; in copy_thread_tls()
169 savesegment(gs, p->thread.gsindex); in copy_thread_tls()
170 p->thread.gs = p->thread.gsindex ? 0 : me->thread.gs; in copy_thread_tls()
171 savesegment(fs, p->thread.fsindex); in copy_thread_tls()
172 p->thread.fs = p->thread.fsindex ? 0 : me->thread.fs; in copy_thread_tls()
173 savesegment(es, p->thread.es); in copy_thread_tls()
174 savesegment(ds, p->thread.ds); in copy_thread_tls()
175 memset(p->thread.ptrace_bps, 0, sizeof(p->thread.ptrace_bps)); in copy_thread_tls()
197 p->thread.io_bitmap_ptr = kmemdup(me->thread.io_bitmap_ptr, in copy_thread_tls()
199 if (!p->thread.io_bitmap_ptr) { in copy_thread_tls()
200 p->thread.io_bitmap_max = 0; in copy_thread_tls()
222 if (err && p->thread.io_bitmap_ptr) { in copy_thread_tls()
223 kfree(p->thread.io_bitmap_ptr); in copy_thread_tls()
224 p->thread.io_bitmap_max = 0; in copy_thread_tls()
277 struct thread_struct *prev = &prev_p->thread; in __switch_to()
278 struct thread_struct *next = &next_p->thread; in __switch_to()
522 load_TLS(&task->thread, cpu); in do_arch_prctl()
525 task->thread.gsindex = GS_TLS_SEL; in do_arch_prctl()
526 task->thread.gs = 0; in do_arch_prctl()
528 task->thread.gsindex = 0; in do_arch_prctl()
529 task->thread.gs = addr; in do_arch_prctl()
548 load_TLS(&task->thread, cpu); in do_arch_prctl()
551 task->thread.fsindex = FS_TLS_SEL; in do_arch_prctl()
552 task->thread.fs = 0; in do_arch_prctl()
554 task->thread.fsindex = 0; in do_arch_prctl()
555 task->thread.fs = addr; in do_arch_prctl()
567 if (task->thread.fsindex == FS_TLS_SEL) in do_arch_prctl()
572 base = task->thread.fs; in do_arch_prctl()
579 if (task->thread.gsindex == GS_TLS_SEL) in do_arch_prctl()
586 base = task->thread.gs; in do_arch_prctl()
588 base = task->thread.gs; in do_arch_prctl()