kernel: init: mark initial dummy thread
The initial dummy thread context used for the initial __swap to the main thread at early kernel initialization was not marked as a dummy thread as it ought to be. Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
This commit is contained in:
parent
1da0a9eebd
commit
50a533f7a5
1 changed files with 1 additions and 0 deletions
|
@ -242,6 +242,7 @@ static void prepare_multithreading(struct k_thread *dummy_thread)
|
|||
_current = dummy_thread;
|
||||
|
||||
dummy_thread->base.user_options = K_ESSENTIAL;
|
||||
dummy_thread->base.thread_state = _THREAD_DUMMY;
|
||||
#endif
|
||||
|
||||
/* _kernel.ready_q is all zeroes */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue