Lines Matching refs:thread
24 _rthread_alloc_stack(pthread_t thread) in _rthread_alloc_stack() argument
34 if (thread->attr.stack_addr == NULL && in _rthread_alloc_stack()
35 thread->attr.stack_size == RTHREAD_STACK_SIZE_DEF && in _rthread_alloc_stack()
36 thread->attr.guard_size == _thread_pagesize) { in _rthread_alloc_stack()
53 if (thread->attr.stack_size > _thread_pagesize) in _rthread_alloc_stack()
55 else if (thread->attr.stack_size == _thread_pagesize) in _rthread_alloc_stack()
62 if (thread->attr.stack_addr != NULL) { in _rthread_alloc_stack()
63 stack->base = base = thread->attr.stack_addr; in _rthread_alloc_stack()
64 stack->len = thread->attr.stack_size; in _rthread_alloc_stack()
68 stack->sp = base + thread->attr.stack_size - (_STACKALIGNBYTES+1) - rnd; in _rthread_alloc_stack()
80 size = ROUND_TO_PAGE(thread->attr.stack_size); in _rthread_alloc_stack()
81 guardsize = ROUND_TO_PAGE(thread->attr.guard_size); in _rthread_alloc_stack()
84 if (size < thread->attr.stack_size || in _rthread_alloc_stack()
85 guardsize < thread->attr.guard_size || in _rthread_alloc_stack()