altos: Block interrupts while waking tasks sleeping on timers.
authorKeith Packard <keithp@keithp.com>
Wed, 29 Jun 2016 00:04:59 +0000 (17:04 -0700)
committerKeith Packard <keithp@keithp.com>
Thu, 30 Jun 2016 02:17:45 +0000 (19:17 -0700)
commita7e0bb5eb661cfde31c383d605cb9cb8ca568bc7
treecd6906fcb623ce67f4bef9799b98d8d7096db7b2
parent40abb0d1e2f43a60ffa34b055ebb913ee3e20faf
altos: Block interrupts while waking tasks sleeping on timers.

Interrupts may not be blocked in the timer ISR, but they need to be
while walking the pending timer list and moving tasks back to the run
queue.

Signed-off-by: Keith Packard <keithp@keithp.com>
src/kernel/ao.h
src/kernel/ao_task.c
src/stm/ao_arch_funcs.h