walnux/libs/libc/machine
Takuya Miyasita 81e7b13a05 arch_atomic : Introduce CONFIG_LIBC_ARCH_ATOMIC
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>
2024-11-12 14:27:42 +09:00
..
arm libc/machine:Add prefixes to libc functions implemented by arch 2024-10-31 18:11:16 +08:00
arm64 libc/machine:Add prefixes to libc functions implemented by arch 2024-10-31 18:11:16 +08:00
renesas libs/libc: migrate to SPDX identifier 2024-10-01 12:25:52 +08:00
risc-v libc/machine:Add prefixes to libc functions implemented by arch 2024-10-31 18:11:16 +08:00
sim setjmp: fix setjmp returns 0 when calling longjmp with 0 as the second argument 2024-10-15 12:36:19 +08:00
sparc libs/libc: migrate to SPDX identifier 2024-10-01 12:25:52 +08:00
tricore libs/libc: migrate to SPDX identifier 2024-10-01 12:25:52 +08:00
x86 libs/libc: migrate to SPDX identifier 2024-10-01 12:25:52 +08:00
x86_64 libs/x86_64:Add the setjmp/longjmp function 2024-10-09 22:24:03 +08:00
xtensa cmake(bugfix):add xtensa libc machine function build 2024-11-03 09:16:24 +08:00
arch_atomic.c arch_atomic : Introduce CONFIG_LIBC_ARCH_ATOMIC 2024-11-12 14:27:42 +09:00
arch_libc.c libc/arch_libc: replace all arch define to ARCH_LIBCFUN(x) style 2024-10-31 18:11:16 +08:00
CMakeLists.txt libc/machine/CMakeLists: should alaways build arch_atomic.c 2024-11-03 02:33:03 +08:00
Kconfig arch_atomic : Introduce CONFIG_LIBC_ARCH_ATOMIC 2024-11-12 14:27:42 +09:00
Make.defs libc/machine:Add prefixes to libc functions implemented by arch 2024-10-31 18:11:16 +08:00