commit | d4dd928eaa3ecab05e5d11d90b15edebc7a01b06 | [log] [tgz] |
---|---|---|
author | Rajavardhan Gundi <rajavardhan.gundi@intel.com> | Wed Jun 27 13:26:20 2018 +0530 |
committer | Andrew Boie <andrewboie@gmail.com> | Tue Jul 03 08:44:09 2018 -0700 |
tree | ff6988163e7e64d994986d53a9974a8e572350d2 | |
parent | 9e97e5b5fd001aa2957b89d487c600cf0ddb1833 [diff] |
kernel/stack: Introduce K_THREAD_STACK_LEN macro This is a public macro which calculates the size to be allocated for stacks inside a stack array. This is necessitated because of some internal padding (e.g. for MPU scenarios). This is particularly useful when a reference to K_THREAD_STACK_ARRAY_DEFINE needs to be made from within a struct. Signed-off-by: Rajavardhan Gundi <rajavardhan.gundi@intel.com>