kernel: fix K_THREAD_DEFINE wrt application memory
The generated struct k_thread could end up in the wrong memory space if CONFIG_APPLICATION_MEMORY is enabled. Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
This commit is contained in:
parent
a34f4fb94f
commit
8749c26555
1 changed files with 1 additions and 1 deletions
|
@ -717,7 +717,7 @@ struct _static_thread_data {
|
|||
entry, p1, p2, p3, \
|
||||
prio, options, delay) \
|
||||
K_THREAD_STACK_DEFINE(_k_thread_stack_##name, stack_size); \
|
||||
struct k_thread _k_thread_obj_##name; \
|
||||
struct k_thread __kernel _k_thread_obj_##name; \
|
||||
struct _static_thread_data _k_thread_data_##name __aligned(4) \
|
||||
__in_section(_static_thread_data, static, name) = \
|
||||
_THREAD_INITIALIZER(&_k_thread_obj_##name, \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue