Skip to content

Commit 689ba58

Browse files
carlescufijhedberg
authored andcommitted
atomic: Select missing ATOMIC_OPERATIONS_BUILTIN
The ATOMIC_OPERATIONS_* Kconfig option is not a choice, so it does not have a default. However, the file that determines which actual atomic operations backend will be used does default to ATOMIC_OPERATIONS_BUILTIN: https://github.com/zephyrproject-rtos/zephyr/blob/3e537db71ea277ccf98adcc9e05707701e53d084/include/zephyr/sys/atomic.h#L26-L41 Since we want to ensure that all SoCs intentionally select the atomic operations backend they want to use, select it at the SoC level for all SoCs, as well as for the Cortex-M arch when the Armv8-M baseline profile is selected. Signed-off-by: Carles Cufi <carles.cufi@nordicsemi.no>
1 parent 07b2a09 commit 689ba58

File tree

5 files changed

+6
-0
lines changed

5 files changed

+6
-0
lines changed

‎arch/arm/core/cortex_m/Kconfig‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,7 @@ config CPU_CORTEX_M_HAS_CMSE
192192

193193
config ARMV6_M_ARMV8_M_BASELINE
194194
bool
195+
select ATOMIC_OPERATIONS_BUILTIN if ARMV8_M_BASELINE
195196
select ATOMIC_OPERATIONS_C if !ARMV8_M_BASELINE
196197
select ISA_THUMB2
197198
help

‎soc/cdns/dc233c/Kconfig‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
config SOC_XTENSA_DC233C
66
select XTENSA
77
select XTENSA_HAL
8+
select ATOMIC_OPERATIONS_BUILTIN
89
select ARCH_HAS_THREAD_LOCAL_STORAGE
910
select CPU_HAS_DCACHE
1011
select CPU_HAS_ICACHE

‎soc/espressif/esp32/Kconfig‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ config SOC_SERIES_ESP32
55
select XTENSA
66
select CLOCK_CONTROL
77
select DYNAMIC_INTERRUPTS
8+
select ATOMIC_OPERATIONS_BUILTIN
89
select ARCH_HAS_GDBSTUB
910
select ARCH_SUPPORTS_COREDUMP
1011
select PINCTRL

‎soc/espressif/esp32s3/Kconfig‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
config SOC_SERIES_ESP32S3
55
select XTENSA
66
select DYNAMIC_INTERRUPTS
7+
select ATOMIC_OPERATIONS_BUILTIN
78
select ARCH_SUPPORTS_COREDUMP
89
select CLOCK_CONTROL
910
select PINCTRL

‎soc/nxp/imxrt/imxrt6xx/Kconfig‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ config SOC_MIMXRT685S_CM33
2222
config SOC_MIMXRT685S_HIFI4
2323
select XTENSA
2424
select XTENSA_HAL if ("$(ZEPHYR_TOOLCHAIN_VARIANT)" != "xcc" && "$(ZEPHYR_TOOLCHAIN_VARIANT)" != "xt-clang")
25+
select ATOMIC_OPERATIONS_BUILTIN if "$(ZEPHYR_TOOLCHAIN_VARIANT)" != "xcc"
26+
select ATOMIC_OPERATIONS_ARCH if "$(ZEPHYR_TOOLCHAIN_VARIANT)" = "xcc"
2527
select XTENSA_RESET_VECTOR
2628
select XTENSA_USE_CORE_CRT1
2729
select CLOCK_CONTROL

0 commit comments

Comments
 (0)