You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by GitBox <gi...@apache.org> on 2021/08/28 13:08:30 UTC
[GitHub] [incubator-nuttx] gustavonihei commented on a change in pull request #4425: libc: add common machine atomic operation
gustavonihei commented on a change in pull request #4425:
URL: https://github.com/apache/incubator-nuttx/pull/4425#discussion_r697867872
##########
File path: libs/libc/machine/Kconfig
##########
@@ -44,6 +44,10 @@ config ARCH_ROMGETC
# Default settings for C library functions that may be replaced with
# architecture-specific versions.
+config LIBC_ARCH_ATOMIC
Review comment:
The implementation for the atomic builtins should not be optional.
Instead, the OS-supported implementation should be used by every architecture that does not provide instructions for atomic memory operations.
We should create a hidden `bool` config (e.g. `ARCH_HAVE_ATOMICS`) and those ISA that do not provide (armv6-m, RISC-V without the `A` extension...) would be the ones to **not** select it.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org