Skip to content
Commit 5c5e17f0 authored by Adrian Warecki's avatar Adrian Warecki Committed by Chris Friedt
Browse files

kernel: dynamic: Optimize stack pool usage



Add the flags parameter to the z_thread_stack_alloc_pool function.
Determine the maximum possible stack size based on the size of the reserved
memory for stack and the thread type (flags).

The stack size that can be used by a thread depend on its type
(kerner/user). For the same stack size, the macros K_KERNEL_STACK_DECLARE
and K_THREAD_STACK_DEFINE may reserve different amount of memory.

Signed-off-by: default avatarAdrian Warecki <adrian.warecki@intel.com>
parent 18497c57
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment