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:
Andrew Boie 2017-05-10 10:31:33 -07:00 committed by Anas Nashif
commit 50a533f7a5

View file

@ -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 */