Lines Matching refs:curthread
160 proc_t *p = ttoproc(curthread); in exec_init()
161 klwp_t *lwp = ttolwp(curthread); in exec_init()
282 curthread->t_post_sys = 1; in exec_init()
283 curthread->t_sysnum = SYS_execve; in exec_init()
290 sigemptyset(&curthread->t_hold); in exec_init()
359 init_mstate(curthread, LMS_SYSTEM); in start_init_common()
383 proc_t *p = ttoproc(curthread); /* &p0 */ in main()
418 ASSERT(curthread == CPU->cpu_thread); in main()
492 ttolwp(curthread)->lwp_error = 0; /* XXX kludge for SCSI driver */ in main()
537 curthread->t_start = PTOU(curproc)->u_start.tv_sec; in main()
570 p0_lep.le_thread = curthread; in main()
571 p0_lep.le_lwpid = curthread->t_tid; in main()
572 p0_lep.le_start = curthread->t_start; in main()