Lines Matching refs:newsize
321 size_t newsize; in grow() local
335 newsize = p->p_stksize; in grow()
338 if (err == 0 && newsize > oldsize) { in grow()
340 ASSERT(IS_P2ALIGNED(newsize, PAGESIZE)); in grow()
345 (void) as_fault(as->a_hat, as, p->p_usrstack - newsize, in grow()
346 newsize - oldsize, F_INVAL, S_WRITE); in grow()
361 size_t len, newsize; in grow_lpg() local
367 newsize = p->p_usrstack - sp; in grow_lpg()
370 pgsz = map_pgsz(MAPPGSZ_STK, p, sp, newsize, 0); in grow_lpg()
429 size_t newsize; in grow_internal() local
449 newsize = p->p_usrstack - (caddr_t)P2ALIGN((uintptr_t)sp, pgsz); in grow_internal()
450 if (newsize > (size_t)p->p_stk_ctl) { in grow_internal()
453 newsize = p->p_usrstack - sp; in grow_internal()
457 newsize = p->p_usrstack - sp; in grow_internal()
460 if (newsize > (size_t)p->p_stk_ctl) { in grow_internal()
470 if (newsize <= oldsize) { /* prevent the stack from shrinking */ in grow_internal()
508 new_start = (uintptr_t)p->p_usrstack - newsize; in grow_internal()
527 if ((error = as_map(p->p_as, (caddr_t)new_start, newsize - oldsize, in grow_internal()
535 p->p_stksize = newsize; in grow_internal()