Enhance optimization and warning level.

This commit is contained in:
TXuian
2024-04-30 11:22:38 +08:00
parent 077dcd66ac
commit 3c6e8ce109
9 changed files with 27 additions and 15 deletions

View File

@@ -233,7 +233,7 @@ static void _scheduler(struct SchedulerRightGroup right_group)
next_task = NULL;
/* find next runnable task */
assert(cur_cpu()->task == NULL);
if (next_task_emergency != NULL && next_task->state == READY) {
if (next_task_emergency != NULL && next_task_emergency->state == READY) {
next_task = next_task_emergency;
} else {
next_task = xizi_task_manager.next_runnable_task();