Make sure to fill in the value of current lcpu's (bootstrap lcpu in
our case) auxiliary stack pointer with that of the current thread's
(main thread) when initializing scheduling.
Signed-off-by: Sergiu Moga <sergiu@unikraft.io>
/* Set main_thread as current scheduled thread */
ukplat_per_lcpu_current(__uk_sched_thread_current) = main_thread;
+ /* Set current LCPU's Kernel Stack pointer */
+ ukplat_lcpu_set_auxsp(main_thread->auxsp);
+
/* Add main to the scheduler's thread list */
UK_TAILQ_INSERT_TAIL(&s->thread_list, main_thread, thread_list);