diff options
author | Simon Glass <sjg@chromium.org> | 2021-02-11 14:06:25 -0700 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-02-13 00:29:10 +0000 |
commit | d5fb5036c7d565a0ea20e7913807df367d3f6b8e (patch) | |
tree | 0f15a7e86821afa520e498bd62a5bf0cbcf4bc47 /include/common.h | |
parent | 0c0715bdadcd6aec298e52d1faf6b33e30769a5f (diff) | |
download | chrome-ec-d5fb5036c7d565a0ea20e7913807df367d3f6b8e.tar.gz |
zephyr: Add support for CONFIG_FPU
Allow this to be enabled for Zephyr. Since we are using the minimal C
library we need to define our own version of a few functions. Add these
for Cortex-M4, taken from the existing ECOS code.
It happens that Zephyr uses CONFIG_FPU, the same as ECOS, so there is
nothing needed in config_chip.h for this case. If CONFIG_FPU is enabled
on a new platform, some work will be needed to make it build.
BUG=b:180023514
BRANCH=none
TEST=build zephyr volteer with CONFIG_NEWLIB_LIBC and see no warnings
Build for volteer
Signed-off-by: Simon Glass <sjg@chromium.org>
Change-Id: I91187560b7e699b7f77ccfa5990617606f7fd6fa
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2691414
Reviewed-by: Keith Short <keithshort@chromium.org>
Diffstat (limited to 'include/common.h')
-rw-r--r-- | include/common.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/common.h b/include/common.h index c1c0faa001..03e1b19d55 100644 --- a/include/common.h +++ b/include/common.h @@ -14,6 +14,7 @@ #include "compile_time_macros.h" #ifdef CONFIG_ZEPHYR +#include <fpu.h> #include <sys/util.h> #include <toolchain.h> #ifdef CONFIG_ZTEST |