diff options
Diffstat (limited to 'core/cortex-m/task.c')
-rw-r--r-- | core/cortex-m/task.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/core/cortex-m/task.c b/core/cortex-m/task.c index 510e4cba32..a4417f4fff 100644 --- a/core/cortex-m/task.c +++ b/core/cortex-m/task.c @@ -263,6 +263,7 @@ void svc_handler(int desched, task_id_t resched) */ tasks_ready &= ~(1 << (current - tasks)); } + ASSERT(resched <= TASK_ID_COUNT); tasks_ready |= 1 << resched; ASSERT(tasks_ready); |