Some armv7-m-based SoCs do not work with atomic instructions, even though armv7-m supports them. To avoid using atomic instructions generated by gcc, CONFIG_LIBC_ARCH_ATOMIC is newly introduced with which arch_atomic.c is linked explicitly. However, the function names need to be changed to avoid build errors, since the functions described in stdatomic.h are gcc built-in and inlined when the code is compiled. Signed-off-by: Takuya Miyasita <Takuya.Miyashita@sony.com> |
||
|---|---|---|
| .. | ||
| arm | ||
| arm64 | ||
| renesas | ||
| risc-v | ||
| sim | ||
| sparc | ||
| tricore | ||
| x86 | ||
| x86_64 | ||
| xtensa | ||
| arch_atomic.c | ||
| arch_libc.c | ||
| CMakeLists.txt | ||
| Kconfig | ||
| Make.defs | ||