Lines Matching defs:ts
308 x86_thread_state32_t *ts = &state;
310 ts->eip = (int)p->p_threadstart;
311 ts->eax = (unsigned int)th_pthread;
312 ts->ebx = (unsigned int)th_thport;
313 ts->ecx = (unsigned int)user_func;
314 ts->edx = (unsigned int)user_funcarg;
315 ts->edi = (unsigned int)user_stacksize;
316 ts->esi = (unsigned int)uap->flags;
320 ts->esp = (int)((vm_offset_t)(th_stack-C_32_STK_ALIGN));
322 thread_set_wq_state32(th, (thread_state_t)ts);
354 arm_thread_state_t *ts = &state;
357 ts->lr = 0;
358 ts->r[7] = 0;
360 ts->pc = (uint32_t)p->p_threadstart;
361 ts->sp = (int)((vm_offset_t)(th_stack-C_32_STK_ALIGN));
363 ts->r[0] = (uint32_t)th_pthread;
364 ts->r[1] = (uint32_t)th_thport;
365 ts->r[2] = (uint32_t)user_func;
366 ts->r[3] = (uint32_t)user_funcarg;
367 ts->r[4] = (uint32_t)user_stacksize;
368 ts->r[5] = (uint32_t)uap->flags;
370 thread_set_wq_state32(th, (thread_state_t)ts);
2245 x86_thread_state32_t *ts = &state;
2247 ts->eip = (int)p->p_wqthread;
2248 ts->eax = (unsigned int)(tl->th_stackaddr + PTH_DEFAULT_STACKSIZE + PTH_DEFAULT_GUARDSIZE);
2249 ts->ebx = (unsigned int)tl->th_thport;
2250 ts->ecx = (unsigned int)(tl->th_stackaddr + PTH_DEFAULT_GUARDSIZE);
2251 ts->edx = (unsigned int)0;
2252 ts->edi = (unsigned int)flags;
2253 ts->esi = (unsigned int)0;
2257 ts->esp = (int)((vm_offset_t)((tl->th_stackaddr + PTH_DEFAULT_STACKSIZE + PTH_DEFAULT_GUARDSIZE) - C_32_STK_ALIGN));
2259 thread_set_wq_state32(th, (thread_state_t)ts);