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:
parent
2e104eabfc
commit
c3711b3446
2 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue