Lines Matching defs:stack

409 	// signal stack, if set, shall be unset.
683 // Copy the fork args onto the stack and free them.
750 /*! Prepares the given thread's kernel stack for executing its entry function.
753 thread's kernel stack. A pointer to the copy's data is passed to the entry
757 \param data Pointer to data to be copied to the thread's stack and passed
764 uint8* stack = (uint8*)thread->kernel_stack_base;
767 // clear (or rather invalidate) the kernel stack contents, if compiled with
771 memset((void*)(stack + KERNEL_STACK_GUARD_PAGES * B_PAGE_SIZE), 0xcc,
774 memset(stack, 0xcc, KERNEL_STACK_SIZE);
778 // copy the data onto the stack, with 16-byte alignment to be on the safe
785 clonedData = (void*)ROUNDUP((addr_t)stack, 16);
786 stack = (uint8*)clonedData + ROUNDUP(dataSize, 16);
791 arch_thread_init_kthread_stack(thread, stack, stackTop,
805 // A stack has been specified. It must be large enough to hold the
813 // No user-defined stack -- allocate one. For non-main threads the stack
814 // will be between USER_STACK_REGION and the main thread stack area. For
824 // Verify that the given stack size is large enough.
853 // set the stack
928 // create the kernel stack
947 dprintf("create_thread: error creating kernel stack: %s!\n",
957 // Init the thread's kernel stack. It will start executing
966 // create the userland stack, if the thread doesn't have one yet
976 // Init the thread's kernel stack. It will start executing
1121 // we need a copy, since the original entry is on the thread's stack
1677 B_PRINTF_POINTER_WIDTH, "stack");
2028 // remember the user stack area -- we will delete it below
2293 // delete the user stack, if this was a user thread
2295 // We postponed deleting the user stack until now, since this way all
2297 // threads waiting for this thread's death and some object on its stack
2298 // will wake up before we (try to) delete the stack area. Of most
2300 // other threads use objects on its stack -- so we want them terminated
2416 // reset user_thread and user stack