Globally configurable stack checks, R10 is always fixed

This commit is contained in:
Pavel Kirienko
2015-01-21 14:54:24 +01:00
committed by Lorenz Meier
parent c9eae96cf6
commit 2ebd7099de
3 changed files with 13 additions and 12 deletions
+7 -9
View File
@@ -80,20 +80,18 @@ ARCHCPUFLAGS_CORTEXM3 = -mcpu=cortex-m3 \
-march=armv7-m \
-mfloat-abi=soft
ARCHINSTRUMENTATIONDEFINES_CORTEXM4F = -ffixed-r10
ARCHINSTRUMENTATIONDEFINES_CORTEXM4 = -ffixed-r10
ARCHINSTRUMENTATIONDEFINES_CORTEXM3 =
# Enabling stack checks if requested
#
ENABLE_STACK_CHECKS ?= 0
ifneq ($(ENABLE_STACK_CHECKS),0)
$(info Stack checks enabled)
ARCHINSTRUMENTATIONDEFINES_CORTEXM4F += -finstrument-functions
ARCHINSTRUMENTATIONDEFINES_CORTEXM4 += -finstrument-functions
ARCHINSTRUMENTATIONDEFINES_CORTEXM3 +=
ARCHINSTRUMENTATIONDEFINES_CORTEXM4F = -finstrument-functions -ffixed-r10
ARCHINSTRUMENTATIONDEFINES_CORTEXM4 = -finstrument-functions -ffixed-r10
ARCHINSTRUMENTATIONDEFINES_CORTEXM3 =
else
ARCHINSTRUMENTATIONDEFINES_CORTEXM4F = -ffixed-r10
ARCHINSTRUMENTATIONDEFINES_CORTEXM4 = -ffixed-r10
ARCHINSTRUMENTATIONDEFINES_CORTEXM3 =
endif
# Pick the right set of flags for the architecture.