Lines Matching refs:thread
85 if ( tsk->thread.magic != THREAD_MAGIC ) in check_stack()
88 printk("thread.magic bad: %08x\n", tsk->thread.magic); in check_stack()
96 if ( (tsk->thread.ksp > stack_top) || (tsk->thread.ksp < tsk_top) ) in check_stack()
101 tsk_top, tsk->thread.ksp, stack_top); in check_stack()
146 memcpy(vrregs, ¤t->thread.vr[0], sizeof(*vrregs)); in dump_altivec()
154 if (current->thread.regs && (current->thread.regs->msr & MSR_VEC)) in enable_kernel_altivec()
168 if (current->thread.regs && (current->thread.regs->msr & MSR_FP)) in enable_kernel_fp()
182 memcpy(fpregs, ¤t->thread.fpr[0], sizeof(*fpregs)); in dump_fpu()
210 if ( prev->thread.regs && (prev->thread.regs->msr & MSR_FP) ) in _switch_to()
224 if ((prev->thread.regs && (prev->thread.regs->msr & MSR_VEC))) in _switch_to()
234 if (new->thread.regs && last_task_used_altivec == new) in _switch_to()
235 new->thread.regs->msr |= MSR_VEC; in _switch_to()
236 new_thread = &new->thread; in _switch_to()
237 old_thread = ¤t->thread; in _switch_to()
268 printk("Last syscall: %ld ", current->thread.last_syscall); in show_regs()
350 p->thread.regs = NULL; /* no user register state */ in copy_thread()
352 p->thread.regs = childregs; in copy_thread()
368 p->thread.ksp = sp; in copy_thread()
379 memcpy(&p->thread.fpr, ¤t->thread.fpr, sizeof(p->thread.fpr)); in copy_thread()
380 p->thread.fpscr = current->thread.fpscr; in copy_thread()
389 memcpy(&p->thread.vr, ¤t->thread.vr, sizeof(p->thread.vr)); in copy_thread()
390 p->thread.vscr = current->thread.vscr; in copy_thread()
394 p->thread.last_syscall = -1; in copy_thread()
414 memset(current->thread.fpr, 0, sizeof(current->thread.fpr)); in start_thread()
415 current->thread.fpscr = 0; in start_thread()
417 memset(current->thread.vr, 0, sizeof(current->thread.vr)); in start_thread()
418 memset(¤t->thread.vscr, 0, sizeof(current->thread.vscr)); in start_thread()
419 current->thread.vrsave = 0; in start_thread()
420 current->thread.used_vr = 0; in start_thread()
439 struct pt_regs *regs = tsk->thread.regs; in set_fpexc_mode()
443 tsk->thread.fpexc_mode = __pack_fe01(val); in set_fpexc_mode()
446 | tsk->thread.fpexc_mode; in set_fpexc_mode()
454 val = __unpack_fe01(tsk->thread.fpexc_mode); in get_fpexc_mode()
531 sp = (unsigned long) &tsk->thread.ksp; in show_trace_task()
649 sp = p->thread.ksp; in get_wchan()