diff options
author | Luke T. Shumaker <lukeshu@lukeshu.com> | 2024-10-04 17:39:24 -0600 |
---|---|---|
committer | Luke T. Shumaker <lukeshu@lukeshu.com> | 2024-10-04 17:39:24 -0600 |
commit | 860a9e995b8e7076ce4e5c231e844184bef9b95e (patch) | |
tree | 8e106b091ec1c4ad423407ae8a6c386b5260772e /libcr | |
parent | 2fe787ba4db420f5b08573d77e35cfaa0d7a0793 (diff) |
wip
Diffstat (limited to 'libcr')
-rw-r--r-- | libcr/coroutine.c | 2 |
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(); |