summaryrefslogtreecommitdiff
path: root/libcr
diff options
context:
space:
mode:
authorLuke T. Shumaker <lukeshu@lukeshu.com>2024-10-04 17:39:24 -0600
committerLuke T. Shumaker <lukeshu@lukeshu.com>2024-10-04 17:39:24 -0600
commit860a9e995b8e7076ce4e5c231e844184bef9b95e (patch)
tree8e106b091ec1c4ad423407ae8a6c386b5260772e /libcr
parent2fe787ba4db420f5b08573d77e35cfaa0d7a0793 (diff)
wip
Diffstat (limited to 'libcr')
-rw-r--r--libcr/coroutine.c2
1 files changed, 2 insertions, 0 deletions
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();