diff options
author | Ricardo Salveti <ricardo.salveti@linaro.org> | 2016-08-26 02:09:40 -0300 |
---|---|---|
committer | Anas Nashif <nashif@linux.intel.com> | 2016-10-11 20:47:49 +0000 |
commit | b0e0c51b470335d1e23ce45ee459f63e94b674da (patch) | |
tree | 36bc4a79ce2a50c87fe19a0824afa72321dff985 /arch | |
parent | da912ba68f0986bbbc9232846620422989705fbe (diff) |
arm: move atomic operations selection to the Cortex-M Kconfig
Builtin might not be available for ARMv6 (Cortex-M0/M0+) depending on
the toolchain used (not available by Zephyr's SDK GCC), so move the
atomic operations selection to the Cortex-M family Kconfig file.
Change-Id: I20a5a0c5fdd2bcff2d304139f5a7e8502fdb1cb3
Signed-off-by: Ricardo Salveti <ricardo.salveti@linaro.org>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/Kconfig | 1 | ||||
-rw-r--r-- | arch/arm/core/cortex_m/Kconfig | 1 |
2 files changed, 1 insertions, 1 deletions
diff --git a/arch/Kconfig b/arch/Kconfig index 5952be331..27dfe9344 100644 --- a/arch/Kconfig +++ b/arch/Kconfig @@ -27,7 +27,6 @@ config ARC config ARM bool "ARM architecture" - select ATOMIC_OPERATIONS_BUILTIN config X86 bool "x86 architecture" diff --git a/arch/arm/core/cortex_m/Kconfig b/arch/arm/core/cortex_m/Kconfig index 63003d554..dcf2e6a9b 100644 --- a/arch/arm/core/cortex_m/Kconfig +++ b/arch/arm/core/cortex_m/Kconfig @@ -49,6 +49,7 @@ config CPU_CORTEX_M3_M4 bool # Omit prompt to signify "hidden" option default n + select ATOMIC_OPERATIONS_BUILTIN select ISA_THUMB2 help This option signifies the use of either a Cortex-M3 or Cortex-M4 CPU. |