Lines Matching refs:stack_info
341 stack = (uint32_t *)_current->stack_info.start; in z_check_stack_sentinel()
444 new_thread->stack_info.mapped.addr = stack_mapped; in setup_thread_stack()
445 new_thread->stack_info.mapped.sz = stack_obj_size; in setup_thread_stack()
495 new_thread->stack_info.start = (uintptr_t)stack_buf_start; in setup_thread_stack()
496 new_thread->stack_info.size = stack_buf_size; in setup_thread_stack()
497 new_thread->stack_info.delta = delta; in setup_thread_stack()
500 new_thread->stack_info.usage.unused_threshold = in setup_thread_stack()
735 unused_threshold = (thread->stack_info.size * pct) / 100; in z_impl_k_thread_runtime_stack_safety_unused_threshold_pct_set()
737 thread->stack_info.usage.unused_threshold = unused_threshold; in z_impl_k_thread_runtime_stack_safety_unused_threshold_pct_set()
745 if (threshold > thread->stack_info.size) { in z_impl_k_thread_runtime_stack_safety_unused_threshold_set()
749 thread->stack_info.usage.unused_threshold = threshold; in z_impl_k_thread_runtime_stack_safety_unused_threshold_set()
756 return thread->stack_info.usage.unused_threshold; in z_impl_k_thread_runtime_stack_safety_unused_threshold_get()
927 (char *)(_current->stack_info.start + in k_thread_user_mode_enter()
928 _current->stack_info.size)); in k_thread_user_mode_enter()
1004 rv = z_stack_space_get((const uint8_t *)thread->stack_info.start, in k_thread_runtime_stack_safety_full_check()
1005 thread->stack_info.size, &unused_space); in k_thread_runtime_stack_safety_full_check()
1015 if ((unused_space < thread->stack_info.usage.unused_threshold) && in k_thread_runtime_stack_safety_full_check()
1033 rv = z_stack_space_get((const uint8_t *)thread->stack_info.start, in k_thread_runtime_stack_safety_threshold_check()
1034 thread->stack_info.usage.unused_threshold, in k_thread_runtime_stack_safety_threshold_check()
1045 if ((unused_space < thread->stack_info.usage.unused_threshold) && in k_thread_runtime_stack_safety_threshold_check()
1068 if (thread->stack_info.mapped.addr == NULL) { in z_impl_k_thread_stack_space_get()
1073 return z_stack_space_get((const uint8_t *)thread->stack_info.start, in z_impl_k_thread_stack_space_get()
1074 thread->stack_info.size, unused_ptr); in z_impl_k_thread_stack_space_get()
1257 thread_cleanup_stack_addr = thread->stack_info.mapped.addr; in defer_thread_cleanup()
1258 thread_cleanup_stack_sz = thread->stack_info.mapped.sz; in defer_thread_cleanup()
1264 thread->stack_info.mapped.addr = NULL; in defer_thread_cleanup()
1265 thread->stack_info.mapped.sz = 0; in defer_thread_cleanup()
1343 dummy_thread->stack_info.start = 0U; in z_dummy_thread_init()
1344 dummy_thread->stack_info.size = 0U; in z_dummy_thread_init()