summaryrefslogtreecommitdiff
path: root/libcr
diff options
context:
space:
mode:
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();