diff options
| author | Keith Packard <keithp@keithp.com> | 2012-10-24 22:46:55 -0700 |
|---|---|---|
| committer | Keith Packard <keithp@keithp.com> | 2012-10-25 00:07:14 -0700 |
| commit | 4b13d3c659240e5a8347b1ba7ab0bf1d8355eba3 (patch) | |
| tree | ef3e1a8e37d8ba3c362f1fdf43e5e9bd09157af9 /src/stm-bringup/Makefile | |
| parent | e80fa6de4ccc5c4851eab9fb941f9282d2e3eb16 (diff) | |
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>
Diffstat (limited to 'src/stm-bringup/Makefile')
| -rw-r--r-- | src/stm-bringup/Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/stm-bringup/Makefile b/src/stm-bringup/Makefile index d45e836d..5cc94bd9 100644 --- a/src/stm-bringup/Makefile +++ b/src/stm-bringup/Makefile @@ -12,7 +12,7 @@ PDCLIB=/home/keithp/sat C_LIB=$(PDCLIB)/lib/pdclib.a C_INC=-I$(PDCLIB)/include -DEF_CFLAGS=-g -std=gnu99 -Os -mlittle-endian -mthumb -ffreestanding -nostdlib -I../../src/stm $(C_INC) +DEF_CFLAGS=-g -std=gnu99 -Os -mlittle-endian -mthumb -ffreestanding -nostdlib -I. -I../../src/stm $(C_INC) # to run from SRAM LD_FLAGS_RAM=-L../stm -Wl,-Taltos-ram.ld |
