Lines Matching defs:stack
39 uint64_t *stack;
47 * Top-of-stack must be rounded down to STACK_ALIGN and
50 stack = (uint64_t *)(((uintptr_t)stk + stksize) & ~(STACK_ALIGN-1));
54 * a page for the top page of the stack. This will cause
58 stack -= 3;
62 if (uucopy(&frame, stack, sizeof (frame)) == 0)
63 return (stack);
71 uint64_t *stack;
84 * Setup the top stack frame.
87 if ((stack = setup_top_frame(stk, stksize, ulwp)) == NULL)
94 ucp->uc_mcontext.gregs[REG_RSP] = (greg_t)stack;
95 ucp->uc_mcontext.gregs[REG_RBP] = (greg_t)(stack + 1);