diff options
author | Gwendal Grignou <gwendal@chromium.org> | 2017-11-07 13:54:06 -0800 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2017-11-16 23:32:11 -0800 |
commit | 2590ce95385346b27366b4bce22e71d87c54eaa6 (patch) | |
tree | 6214a5d945ccdb27fa1423119eaf22944797cf36 /core/cortex-m0/config_core.h | |
parent | 26090a142b922dfe728a24241b60d47c50112b15 (diff) | |
download | chrome-ec-2590ce95385346b27366b4bce22e71d87c54eaa6.tar.gz |
common: Add software CTZ implementation when needeed
CTZ - Count Trailing Zero - is not implemented in hardware on cortex0 or
nds32.
Used in ST sensor drivers.
BUG=none
BRANCH=none
TEST=compile
Change-Id: I2d62fd60f05169189b24ba2a3308bec69ed9de9c
Signed-off-by: Gwendal Grignou <gwendal@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/767609
Commit-Ready: Ely Vazquez <nadia198877@gmail.com>
Reviewed-by: Shawn N <shawnn@chromium.org>
Diffstat (limited to 'core/cortex-m0/config_core.h')
-rw-r--r-- | core/cortex-m0/config_core.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/core/cortex-m0/config_core.h b/core/cortex-m0/config_core.h index e58b481704..389ed8edec 100644 --- a/core/cortex-m0/config_core.h +++ b/core/cortex-m0/config_core.h @@ -10,8 +10,9 @@ #define BFD_ARCH arm #define BFD_FORMAT "elf32-littlearm" -/* Emulate the CLZ instruction since the CPU core is lacking support */ +/* Emulate the CLZ/CTZ instructions since the CPU core is lacking support */ #define CONFIG_SOFTWARE_CLZ +#define CONFIG_SOFTWARE_CTZ #define CONFIG_SOFTWARE_PANIC #endif /* __CROS_EC_CONFIG_CORE_H */ |