Commit 7d96d5f0 authored by Rahix's avatar Rahix

fix(serial): Fix serial_flush_from_isr always yielding

By passing `&resched` instead of just `resched`, the internal comparison
in FreeRTOS would always evaluate to rescheduling.  Curiously, only some
GCC versions emit the -Waddress warning for this while others do not ...
Signed-off-by: Rahix's avatarRahix <rahix@rahix.de>
parent 67cb31c6
Pipeline #4333 failed with stages
in 20 seconds
......@@ -161,7 +161,7 @@ static void serial_flush_from_isr(void)
taskEXIT_CRITICAL_FROM_ISR(basepri);
portYIELD_FROM_ISR(&resched);
portYIELD_FROM_ISR(resched);
}
static void serial_flush_from_thread(void)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment