From 860a9e995b8e7076ce4e5c231e844184bef9b95e Mon Sep 17 00:00:00 2001 From: "Luke T. Shumaker" Date: Fri, 4 Oct 2024 17:39:24 -0600 Subject: wip --- libcr/coroutine.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'libcr') diff --git a/libcr/coroutine.c b/libcr/coroutine.c index fac0cd7..13ee932 100644 --- a/libcr/coroutine.c +++ b/libcr/coroutine.c @@ -502,7 +502,9 @@ static inline void _cr_transition(enum coroutine_state state) { } /* No coroutines are runnable, wait for an interrupt * to change that. */ + cr_enable_interrupts(); cr_plat_wait_for_interrupt(); + cr_disable_interrupts(); } coroutine_table[coroutine_running-1].sp = cr_plat_get_sp(); -- cgit v1.2.3-2-g168b