Lines Matching defs:stk
230 caddr_t stk = ulwp->ul_stk;
238 ulwp->ul_stk = stk;
323 void *stk;
394 if ((stk = mmap(NULL, mapsize, stackprot,
401 (void) munmap(stk, mapsize);
403 ulwp->ul_stk = stk;
406 ulwp->ul_stktop = (uintptr_t)stk + mapsize;
409 (void) mprotect(stk, guardsize, PROT_NONE);
558 _thrp_create(void *stk, size_t stksize, void *(*func)(void *), void *arg,
580 if ((stk || stksize) && stksize < MINSTACK)
583 if (stk == NULL) {
591 ulwp->ul_stk = stk;
592 ulwp->ul_stktop = (uintptr_t)stk + stksize;
659 if (error != 0 && stk != NULL) /* inaccessible stack */
721 thr_create(void *stk, size_t stksize, void *(*func)(void *), void *arg,
724 return (_thrp_create(stk, stksize, func, arg, flags, new_thread, 0));
1746 _thrp_stksegment(ulwp_t *ulwp, stack_t *stk)
1748 stk->ss_sp = (void *)ulwp->ul_stktop;
1749 stk->ss_size = ulwp->ul_stksiz;
1750 stk->ss_flags = 0;
1756 thr_stksegment(stack_t *stk)
1758 return (_thrp_stksegment(curthread, stk));