Lines Matching refs:curthread

151 	ASSERT(t == curthread && curthread->t_schedflag & TS_DONT_SWAP);  in syscall_entry()
238 kthread_t *t = curthread; in pre_syscall()
399 printf(" %s id=0x%p\n", PTOU(p)->u_comm, curthread); in pre_syscall()
427 kthread_t *t = curthread; in post_syscall()
457 aston(curthread); in post_syscall()
471 if (curthread->t_pdmsg != NULL) { in post_syscall()
472 char *m = curthread->t_pdmsg; in post_syscall()
476 curthread->t_pdmsg = NULL; in post_syscall()
495 if (curthread->t_rprof != NULL && in post_syscall()
496 curthread->t_rprof->rp_anystate != 0) { in post_syscall()
509 p->p_pid, rval1, rval2, curthread); in post_syscall()
522 p->p_pid, error, curthread); in post_syscall()
619 if (curthread->t_proc_flag & TP_CHANGEBIND) { in post_syscall()
621 if (curthread->t_proc_flag & TP_CHANGEBIND) { in post_syscall()
623 curthread->t_proc_flag &= ~TP_CHANGEBIND; in post_syscall()
793 proc_t *p = ttoproc(curthread); in deferred_singlestep_trap()
794 klwp_t *lwp = ttolwp(curthread); in deferred_singlestep_trap()
845 tsignal(curthread, SIGSYS); in nosys()
876 se = syscall_entry(curthread, syscall_args); in dosyscall()
885 syscall_exit(curthread, (int)ret & 0xffffffffu, (int)(ret >> 32)); in dosyscall()
990 kthread_t *t = curthread; in save_syscall_args()
1060 ttolwp(curthread)->lwp_argsaved = 0; in reset_syscall_args()
1074 kthread_t *t = curthread; in syscall_ap()
1167 klwp_t *lwp = ttolwp(curthread); in loadable_syscall()
1174 code = curthread->t_sysnum; in loadable_syscall()
1236 curthread->t_post_sys = 1; /* have post_syscall do error return */ in set_errno()
1237 return (ttolwp(curthread)->lwp_errno = error); in set_errno()
1306 t = first = curthread; in set_all_proc_sys()