Fix chx_recv_irq.

Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
This commit is contained in:
NIIBE Yutaka
2021-02-08 17:33:24 +09:00
parent cfcdeebb78
commit d2df891ba5
2 changed files with 3 additions and 1 deletions

View File

@@ -1,5 +1,7 @@
2021-02-08 NIIBE Yutaka <gniibe@fsij.org>
* chopstx.c (chx_recv_irq): Bug fix when no waiter.
* entry-cortex-m.c (vector_table): No use of PENDV exception.
Use chx_handle_intr for SysTick.
* example-fsm-55/reset.c (vector): Likewise.

View File

@@ -460,7 +460,7 @@ chx_recv_irq (uint32_t irq_num)
break;
chx_spin_unlock (&q_intr.lock);
if (p)
if (!ll_empty ((struct chx_qh *)p))
{
struct chx_px *px = (struct chx_px *)p;