summaryrefslogtreecommitdiff
path: root/core/cortex-m0/build.mk
diff options
context:
space:
mode:
authorVincent Palatin <vpalatin@chromium.org>2014-07-09 10:18:11 -0700
committerchrome-internal-fetch <chrome-internal-fetch@google.com>2014-07-10 21:17:58 +0000
commit55aee3888af07bedaacbcc5c345bad342c22457e (patch)
treee5c2d2571477142c9817df2485b26ef6e838c813 /core/cortex-m0/build.mk
parent9f5a873865806303ac2a98dfdf0de61a132f4911 (diff)
downloadchrome-ec-55aee3888af07bedaacbcc5c345bad342c22457e.tar.gz
cortex-m0: add 64-bit multiplication
Import code to do 64-bit multiplication on Cortex-M0 core without SMULL instruction. Signed-off-by: Vincent Palatin <vpalatin@chromium.org> BRANCH=none BUG=none TEST=make buildall add a 64-bit multiplication and see it compiled properly. verify in .map files that the code is discarded for cortex-M0 based platforms not using the 64-bit multiplication. Change-Id: I0a91b3502f4bee4bb79b193fe0854e56a7d498f7 Reviewed-on: https://chromium-review.googlesource.com/207132 Reviewed-by: Randall Spangler <rspangler@chromium.org> Tested-by: Vincent Palatin <vpalatin@chromium.org> Commit-Queue: Vincent Palatin <vpalatin@chromium.org>
Diffstat (limited to 'core/cortex-m0/build.mk')
-rw-r--r--core/cortex-m0/build.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/cortex-m0/build.mk b/core/cortex-m0/build.mk
index 9b5d63bb4d..13cef2efc2 100644
--- a/core/cortex-m0/build.mk
+++ b/core/cortex-m0/build.mk
@@ -13,7 +13,7 @@ CROSS_COMPILE?=arm-none-eabi-
CFLAGS_CPU+=-mthumb -Os -mno-sched-prolog
CFLAGS_CPU+=-mno-unaligned-access
-core-y=cpu.o init.o thumb_case.o div.o
+core-y=cpu.o init.o thumb_case.o div.o lmul.o
core-$(CONFIG_COMMON_PANIC_OUTPUT)+=panic.o
core-$(CONFIG_COMMON_RUNTIME)+=switch.o task.o
core-$(CONFIG_WATCHDOG)+=watchdog.o