add protect of idle task, update to 2.4.5
This commit is contained in:
@@ -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_ */
|
||||
|
||||
|
@@ -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];
|
||||
|
||||
|
Reference in New Issue
Block a user