kernel: change metadata for priv_stacks to const

The metadata array for priv_stacks doesn't change and
can be marked const so this can put in ROM.

Signed-off-by: Daniel Leung <daniel.leung@intel.com>
This commit is contained in:
Daniel Leung 2021-03-20 12:02:59 -07:00 committed by Anas Nashif
commit c3711b3446
2 changed files with 2 additions and 2 deletions

View file

@ -67,7 +67,7 @@ union z_object_data {
#ifdef CONFIG_GEN_PRIV_STACKS
/* Metadata for K_OBJ_THREAD_STACK_ELEMENT */
struct z_stack_data *stack_data;
const struct z_stack_data *stack_data;
#else
/* Stack buffer size for K_OBJ_THREAD_STACK_ELEMENT */
size_t stack_size;