summaryrefslogtreecommitdiff
path: root/src/arch/msp430fr5969lp
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2018-12-05 18:13:17 +0100
committerDaniel Friesel <derf@finalrewind.org>2018-12-05 18:13:17 +0100
commita827a8ad5a7b2ffdd83c0eeba82ec7468df321f9 (patch)
tree81c978083b385b9b93b654ffc18b98a15e76de6b /src/arch/msp430fr5969lp
parentd0157ffa16adaf59d56148e39f9397b348e72f8e (diff)
support static analysis of stack usage
Diffstat (limited to 'src/arch/msp430fr5969lp')
-rw-r--r--src/arch/msp430fr5969lp/Makefile.inc5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/arch/msp430fr5969lp/Makefile.inc b/src/arch/msp430fr5969lp/Makefile.inc
index ea84130..b2c0231 100644
--- a/src/arch/msp430fr5969lp/Makefile.inc
+++ b/src/arch/msp430fr5969lp/Makefile.inc
@@ -14,6 +14,11 @@ COMMON_FLAGS += -DMULTIPASS_ARCH_HAS_I2C
CC = /opt/msp430/ti/gcc/bin/msp430-elf-gcc
CXX = /opt/msp430/ti/gcc/bin/msp430-elf-g++
OBJCOPY = /opt/msp430/ti/gcc/bin/msp430-elf-objcopy
+OBJDUMP = /opt/msp430/ti/gcc/bin/msp430-elf-objdump
+
+# For each function call, the 4-Byte (20 bits at 2-Byte alignment) return
+# address is pushed onto the stack.
+ARCH_CALL_COST = 4
CXX_TARGETS += src/arch/msp430fr5969lp/arch.cc