projects
/
fw
/
altos
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
altos: Leave interrupts disabled while checking for task to run
[fw/altos]
/
src
/
stm
/
ao_arch_funcs.h
diff --git
a/src/stm/ao_arch_funcs.h
b/src/stm/ao_arch_funcs.h
index ca451a53239cf34c805bcfc7f89e1c3db1aae4bd..d6ab1465c73cd1b9a5f0c46080ba1ef780afd1aa 100644
(file)
--- a/
src/stm/ao_arch_funcs.h
+++ b/
src/stm/ao_arch_funcs.h
@@
-299,8
+299,10
@@
static inline void ao_arch_restore_stack(void) {
#define ao_arch_isr_stack()
#define ao_arch_isr_stack()
-#define ao_arch_
cpu_idle() do {
\
+#define ao_arch_
wait_interrupt() do {
\
asm(".global ao_idle_loc\n\twfi\nao_idle_loc:"); \
asm(".global ao_idle_loc\n\twfi\nao_idle_loc:"); \
+ ao_arch_release_interrupts(); \
+ ao_arch_block_interrupts(); \
} while (0)
#define ao_arch_critical(b) do { \
} while (0)
#define ao_arch_critical(b) do { \