add protect of idle task, update to 2.4.5

This commit is contained in:
mculover666
2021-09-29 17:30:05 +08:00
parent 9e45c54da0
commit 249825fa50
2 changed files with 7 additions and 2 deletions

View File

@@ -25,8 +25,8 @@
#define TOS_VERSION_MAJOR 0x02
#define TOS_VERSION_MINOR 0x04
#define TOS_VERSION_PATCH 0x04
#define TOS_VERSION "2.4.4"
#define TOS_VERSION_PATCH 0x05
#define TOS_VERSION "2.4.5"
#endif /* _TOS_VERSION_H_ */

View File

@@ -140,6 +140,11 @@ __KNL__ void readyqueue_remove(k_task_t *task)
k_prio_t task_prio;
k_list_t *task_list;
// protect the idle task.
if (knl_is_idle(task)) {
return;
}
task_prio = task->prio;
task_list = &k_rdyq.task_list_head[task_prio];