Lines Matching refs:thread

443 	if (me->thread.io_bitmap_ptr) {   in exit_thread()
446 kfree(me->thread.io_bitmap_ptr); in exit_thread()
447 me->thread.io_bitmap_ptr = NULL; in exit_thread()
455 memset(tsk->thread.debugreg, 0, sizeof(unsigned long)*8); in flush_thread()
520 p->thread.rsp = (unsigned long) childregs; in copy_thread()
521 p->thread.rsp0 = (unsigned long) (childregs+1); in copy_thread()
522 p->thread.userrsp = current->thread.userrsp; in copy_thread()
524 p->thread.rip = (unsigned long) ret_from_fork; in copy_thread()
526 p->thread.fs = me->thread.fs; in copy_thread()
527 p->thread.gs = me->thread.gs; in copy_thread()
529 asm("mov %%gs,%0" : "=m" (p->thread.gsindex)); in copy_thread()
530 asm("mov %%fs,%0" : "=m" (p->thread.fsindex)); in copy_thread()
531 asm("mov %%es,%0" : "=m" (p->thread.es)); in copy_thread()
532 asm("mov %%ds,%0" : "=m" (p->thread.ds)); in copy_thread()
535 p->thread.i387 = current->thread.i387; in copy_thread()
537 if (unlikely(me->thread.io_bitmap_ptr != NULL)) { in copy_thread()
538 p->thread.io_bitmap_ptr = kmalloc((IO_BITMAP_SIZE+1)*4, GFP_KERNEL); in copy_thread()
539 if (!p->thread.io_bitmap_ptr) in copy_thread()
541 memcpy(p->thread.io_bitmap_ptr, me->thread.io_bitmap_ptr, in copy_thread()
551 #define loaddebug(thread,register) \ argument
552 set_debug(thread->debugreg[register], register)
563 struct thread_struct *prev = &prev_p->thread, in __switch_to()
564 *next = &next_p->thread; in __switch_to()
703 current->thread.flags = 0; in set_personality_64bit()
748 if (p->thread.rsp < (u64)p || p->thread.rsp > (u64)p + THREAD_SIZE) in get_wchan()
750 fp = *(u64 *)(p->thread.rsp); in get_wchan()
774 current->thread.gsindex = 0; in sys_arch_prctl()
775 current->thread.gs = addr; in sys_arch_prctl()
784 current->thread.fsindex = 0; in sys_arch_prctl()
785 current->thread.fs = addr; in sys_arch_prctl()