Lines Matching refs:stksize
325 size_t stksize,
352 if (stksize < default_stksize)
353 stksize = default_stksize;
355 if (stksize == default_stksize) {
358 stksize = roundup(stksize, PAGESIZE);
359 stk = (caddr_t)segkp_get(segkp, stksize,
372 if (stksize <= sizeof (kthread_t) + PTR24_ALIGN)
376 stksize -= SA(sizeof (kthread_t) + PTR24_ALIGN - 1);
377 stksize &= -PTR24_ALIGN; /* make thread aligned */
378 t = (kthread_t *)(stk + stksize);
382 t->t_stk = stk + stksize;
385 stksize -= SA(sizeof (kthread_t));
389 t->t_stkbase = stk + stksize + sizeof (kthread_t);
404 t->t_stk = stk + stksize;
408 t->t_stkbase = stk + stksize;