From b5e84c26699d9b2beadf2e44adbd92c2c18b5bfa Mon Sep 17 00:00:00 2001 From: "Luke T. Shumaker" Date: Fri, 21 Feb 2025 00:53:45 -0700 Subject: libcr_ipc: Fixes and tests for sema.h --- libcr/coroutine.c | 1 + 1 file changed, 1 insertion(+) (limited to 'libcr/coroutine.c') diff --git a/libcr/coroutine.c b/libcr/coroutine.c index c6eeb43..39df3d5 100644 --- a/libcr/coroutine.c +++ b/libcr/coroutine.c @@ -676,6 +676,7 @@ void coroutine_main(void) { coroutine_table[coroutine_running-1] = (struct coroutine){0}; coroutine_cnt--; } + coroutine_running = 0; cr_restore_interrupts(saved); } -- cgit v1.2.3-2-g168b