Fix chx_recv_irq.

Fixes-commit: d2df891ba5
Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
This commit is contained in:
NIIBE Yutaka
2021-02-10 09:22:37 +09:00
parent bd8f39f3c9
commit bd66c51e35
2 changed files with 8 additions and 3 deletions

View File

@@ -1,3 +1,10 @@
2021-02-10 NIIBE Yutaka <gniibe@fsij.org>
* chopstx.c (chx_recv_irq): Bug fix when no waiter.
* chopstx-gnu-linux.c (chopstx_create_arch): Fix ARGC of
makecontext call.
2021-02-09 NIIBE Yutaka <gniibe@fsij.org>
* chopstx-gnu-linux.c (chopstx_create_arch): Clear TP.
@@ -10,8 +17,6 @@
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 (!ll_empty ((struct chx_qh *)p))
if (p != (struct chx_pq *)&q_intr.q)
{
struct chx_px *px = (struct chx_px *)p;