Lines Matching defs:stack
136 * the stub stack page. We just have to copy it.
206 static int userspace_tramp(void *stack)
238 if (stack != NULL) {
239 fd = phys_mapping(to_phys(stack), &offset);
244 printk(UM_KERN_ERR "mapping segfault stack "
251 if (!ptrace_faultinfo && (stack != NULL)) {
281 void *stack;
285 stack = mmap(NULL, UM_KERN_PAGE_SIZE,
288 if (stack == MAP_FAILED) {
295 sp = (unsigned long) stack + UM_KERN_PAGE_SIZE - sizeof(void *);
336 if (munmap(stack, UM_KERN_PAGE_SIZE) < 0) {
489 * prepare offset and fd of child's stack as argument for parent's
511 * parent's stack, and check, if bad result.
532 * child's stack and check it.
563 unsigned long stack)
592 if (stack) {
594 int map_fd = phys_mapping(to_phys((void *)stack), &map_offset);
618 void new_thread(void *stack, jmp_buf *buf, void (*handler)(void))
621 (*buf)[0].JB_SP = (unsigned long) stack + UM_THREAD_SIZE -
642 int start_idle_thread(void *stack, jmp_buf *switch_buf)
653 * blocked, which can't be done on this stack.
661 (*switch_buf)[0].JB_SP = (unsigned long) stack +