kernel/mbox: add missing dummy thread timeout init
It was possible for a dummy thread to be not timing, but not having timeout.delta_ticks_from_prev not be -1 at the same time, which is a big no-no. Use _init_thread_base() to do a full initialization of the dummy thread. Fixes ZEP-1312. Change-Id: I16a2373be3329c142cf26f5dca6bfdbe6014ac5e Signed-off-by: Benjamin Walsh <benjamin.walsh@windriver.com>
This commit is contained in:
parent
069fd3624e
commit
04c542d9d0
1 changed files with 1 additions and 1 deletions
|
@ -88,7 +88,7 @@ static int init_mbox_module(struct device *dev)
|
|||
int i;
|
||||
|
||||
for (i = 0; i < CONFIG_NUM_MBOX_ASYNC_MSGS; i++) {
|
||||
async_msg[i].thread.flags = K_DUMMY;
|
||||
_init_thread_base(&async_msg[i].thread, 0, K_DUMMY, 0);
|
||||
k_stack_push(&async_msg_free, (uint32_t)&async_msg[i]);
|
||||
}
|
||||
#endif /* CONFIG_NUM_MBOX_ASYNC_MSGS > 0 */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue