Added monitor stack initialization.

git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@11319 35acf78f-673a-0410-8e92-d51de3d6d3f4
This commit is contained in:
isiora 2018-01-18 09:40:02 +00:00
parent f06110436a
commit 9d24e49e12
2 changed files with 8 additions and 1 deletions

View File

@ -14,7 +14,7 @@
limitations under the License. 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_start__ = ORIGIN(ram0);
__ram0_size__ = LENGTH(ram0); __ram0_size__ = LENGTH(ram0);

View File

@ -69,6 +69,13 @@ else
LDOPT := $(LDOPT),--defsym=__sys_stack_size__=$(USE_SYSTEM_STACKSIZE) LDOPT := $(LDOPT),--defsym=__sys_stack_size__=$(USE_SYSTEM_STACKSIZE)
endif 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 # Output directory and files
ifeq ($(BUILDDIR),) ifeq ($(BUILDDIR),)
BUILDDIR = build BUILDDIR = build