altos: Add debugging code to check for stack overflow
authorKeith Packard <keithp@keithp.com>
Wed, 27 Jun 2012 06:21:04 +0000 (23:21 -0700)
committerKeith Packard <keithp@keithp.com>
Wed, 27 Jun 2012 06:21:04 +0000 (23:21 -0700)
commit8efac8eb99a9aabb45d9fbf742e4be91e4b331a5
tree079ddc84f0c7e9a47fd71ee35436e6285726c246
parentebeac02a990da3fa6dd71487141d0bc6f78b42de
altos: Add debugging code to check for stack overflow

Stack overflow often happens from interrupt handlers sitting on top of
a task stack. Check for this during ao_wakeup as that is often called
during interrupt processing.

Signed-off-by: Keith Packard <keithp@keithp.com>
src/core/ao_task.c