altos: Add stack-guard code. Uses STM MPU to trap stack overflow.
authorKeith Packard <keithp@keithp.com>
Thu, 25 Oct 2012 05:46:55 +0000 (22:46 -0700)
committerKeith Packard <keithp@keithp.com>
Thu, 25 Oct 2012 07:07:14 +0000 (00:07 -0700)
commit4b13d3c659240e5a8347b1ba7ab0bf1d8355eba3
treeef3e1a8e37d8ba3c362f1fdf43e5e9bd09157af9
parente80fa6de4ccc5c4851eab9fb941f9282d2e3eb16
altos: Add stack-guard code. Uses STM MPU to trap stack overflow.

This marks the lowest portion of the stack as inaccessible to the CPU,
causing the processor to fault when it reaches it. The fault then
generates a panic message so that the user can know what happened.

Signed-off-by: Keith Packard <keithp@keithp.com>
src/core/ao.h
src/core/ao_task.c
src/megametrum-v0.1/Makefile
src/megametrum-v0.1/ao_megametrum.c
src/stm-bringup/Makefile
src/stm-bringup/ao.h [new file with mode: 0644]
src/stm/ao_interrupt.c
src/stm/ao_mpu.h [new file with mode: 0644]
src/stm/ao_mpu_stm.c [new file with mode: 0644]
src/stm/registers.ld
src/stm/stm32l.h