From 9d24e49e12cbcff463ccaf2f0c30d96f03d00d53 Mon Sep 17 00:00:00 2001 From: isiora Date: Thu, 18 Jan 2018 09:40:02 +0000 Subject: Added monitor stack initialization. git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@11319 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/common/startup/ARMCAx-TZ/compilers/GCC/ld/rules.ld | 2 +- os/common/startup/ARMCAx-TZ/compilers/GCC/rules.mk | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/os/common/startup/ARMCAx-TZ/compilers/GCC/ld/rules.ld b/os/common/startup/ARMCAx-TZ/compilers/GCC/ld/rules.ld index ac4e969bd..d9e72dcbd 100644 --- a/os/common/startup/ARMCAx-TZ/compilers/GCC/ld/rules.ld +++ b/os/common/startup/ARMCAx-TZ/compilers/GCC/ld/rules.ld @@ -14,7 +14,7 @@ limitations under the License. */ -__stacks_total_size__ = __und_stack_size__ + __abt_stack_size__ + __fiq_stack_size__ + __irq_stack_size__ + __svc_stack_size__ + __sys_stack_size__; +__stacks_total_size__ = __und_stack_size__ + __abt_stack_size__ + __fiq_stack_size__ + __irq_stack_size__ + __svc_stack_size__ + __mon_stack_size__ + __sys_stack_size__; __ram0_start__ = ORIGIN(ram0); __ram0_size__ = LENGTH(ram0); diff --git a/os/common/startup/ARMCAx-TZ/compilers/GCC/rules.mk b/os/common/startup/ARMCAx-TZ/compilers/GCC/rules.mk index 0b98a5334..1be8cfa36 100644 --- a/os/common/startup/ARMCAx-TZ/compilers/GCC/rules.mk +++ b/os/common/startup/ARMCAx-TZ/compilers/GCC/rules.mk @@ -69,6 +69,13 @@ else LDOPT := $(LDOPT),--defsym=__sys_stack_size__=$(USE_SYSTEM_STACKSIZE) endif +# Monitor stack size +ifeq ($(USE_MONITOR_STACKSIZE),) + LDOPT := $(LDOPT),--defsym=__mon_stack_size__=0x64 +else + LDOPT := $(LDOPT),--defsym=__mon_stack_size__=$(USE_MONITOR_STACKSIZE) +endif + # Output directory and files ifeq ($(BUILDDIR),) BUILDDIR = build -- cgit v1.2.3