altos: Add AO_STACK_CANARY to detect stack overflows sometimes
authorKeith Packard <keithp@keithp.com>
Tue, 13 Jun 2023 06:13:29 +0000 (23:13 -0700)
committerKeith Packard <keithp@keithp.com>
Tue, 13 Jun 2023 06:18:21 +0000 (23:18 -0700)
commit2dd10fcc43369129b1d5067f10365574a12943eb
treeb9944246a0a2d7f388ab6d23b86e48d8e3fdaff9
parent41301eea02a25c77129c852d11977accf26152db
altos: Add AO_STACK_CANARY to detect stack overflows sometimes

Checks above and below the current task stack at each switch.

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