Fix timeout.

This commit is contained in:
NIIBE Yutaka
2017-11-10 15:45:45 +09:00
parent 55b011a721
commit b572e3f8e0
2 changed files with 5 additions and 0 deletions

View File

@@ -1,3 +1,7 @@
2017-11-10 NIIBE Yutaka <gniibe@fsij.org>
* chopstx.c (chx_timer_expired): Fix timeout.
2017-10-11 NIIBE Yutaka <gniibe@fsij.org>
* mcu/sys-stm32f103.h (nonreturn_handler0, nonreturn_handler1): New.

View File

@@ -382,6 +382,7 @@ chx_timer_expired (void)
{
uint32_t next_tick = tp->v;
tp->v = (uintptr_t)0;
chx_ready_enqueue (tp);
if (tp == running) /* tp->flag_sched_rr == 1 */
prio = MAX_PRIO;