Lines Matching defs:stack
32 * The stack needs to be 16-byte aligned with a 4-byte bias. See comment in
51 uint32_t *stack;
61 * Top-of-stack must be rounded down to STACK_ALIGN and
63 * stack frame (see <sys/frame.h>) but a construction made here to
65 * with a 16-byte aligned stack pointer (the address of frame.arg
68 stack = (uint32_t *)(((uintptr_t)stk + stksize) & ~(STACK_ALIGN-1));
72 * a page for the top page of the stack. This will cause
76 stack -= 5; /* make the address of frame.arg be 16-byte aligned */
82 if (uucopy(&frame, (void *)stack, sizeof (frame)) == 0)
83 return (stack);
94 uint32_t *stack;
130 * Setup the top stack frame.
133 if ((stack = setup_top_frame(stk, stksize, ulwp)) == NULL)
139 ucp->uc_mcontext.gregs[UESP] = (greg_t)stack;
140 ucp->uc_mcontext.gregs[EBP] = (greg_t)(stack + 3);