Lines Matching refs:stack
112 * the stub stack page. We just have to copy it.
180 * @stack: pointer to the new userspace stack page, can be NULL, if? FIXME:
183 * This function will run on a temporary stack page.
193 static int userspace_tramp(void *stack)
217 if (stack != NULL) {
218 fd = phys_mapping(to_phys(stack), &offset);
223 printk(UM_KERN_ERR "mapping segfault stack "
229 if (stack != NULL) {
257 * @stub_stack: pointer to the stub stack. Can be NULL, if? FIXME:
259 * Setups a new temporary stack page that is used while userspace_tramp() runs
268 void *stack;
272 /* setup a temporary stack page */
273 stack = mmap(NULL, UM_KERN_PAGE_SIZE,
276 if (stack == MAP_FAILED) {
283 /* set stack pointer to the end of the stack page, so it can grow downwards */
284 sp = (unsigned long) stack + UM_KERN_PAGE_SIZE - sizeof(void *);
322 if (munmap(stack, UM_KERN_PAGE_SIZE) < 0) {
481 * prepare offset and fd of child's stack as argument for parent's
509 * parent's stack, and check, if bad result.
530 * child's stack and check it.
555 void new_thread(void *stack, jmp_buf *buf, void (*handler)(void))
558 (*buf)[0].JB_SP = (unsigned long) stack + UM_THREAD_SIZE -
580 int start_idle_thread(void *stack, jmp_buf *switch_buf)
590 * blocked, which can't be done on this stack.
598 (*switch_buf)[0].JB_SP = (unsigned long) stack +