diff options
Diffstat (limited to 'ports')
-rw-r--r-- | ports/ARMCM3/chcore.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ports/ARMCM3/chcore.c b/ports/ARMCM3/chcore.c index 1a631e36b..199c71fd9 100644 --- a/ports/ARMCM3/chcore.c +++ b/ports/ARMCM3/chcore.c @@ -167,8 +167,8 @@ void PendSVVector(void) { PUSH_CONTEXT(sp_thd); (otp = currp)->p_ctx.r13 = sp_thd; - chSchReadyI(otp); (currp = fifo_remove(&rlist.r_queue))->p_state = PRCURR; + chSchReadyI(otp); #ifdef CH_USE_ROUNDROBIN /* set the round-robin time quantum */ rlist.r_preempt = CH_TIME_QUANTUM; |