Commit 31a8c73
committed
Remove first-task binding from task initialization
Previously, both mo_task_spawn() and idle_task_init() implicitly
bound their created tasks to kcb->task_current as the first execution
context. This behavior caused ambiguity with the scheduler, which is
now responsible for determining the active task during system startup.
This change removes the initial binding logic from both functions,
allowing the startup process (main()) to explicitly assign
kcb->task_current (typically to the idle task) during launch.
This ensures a single, centralized initialization flow and improves
the separation between task creation and scheduling control.1 parent f1b993b commit 31a8c73
1 file changed
+0
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
721 | 721 | | |
722 | 722 | | |
723 | 723 | | |
724 | | - | |
725 | | - | |
726 | | - | |
727 | 724 | | |
728 | 725 | | |
729 | 726 | | |
| |||
789 | 786 | | |
790 | 787 | | |
791 | 788 | | |
792 | | - | |
793 | | - | |
794 | | - | |
795 | | - | |
796 | 789 | | |
797 | 790 | | |
798 | 791 | | |
| |||
0 commit comments