This is an automated email from the ASF dual-hosted git repository.

xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git


The following commit(s) were added to refs/heads/master by this push:
     new 1d6ece71b8 arch: arm: Fix cxd56xx for SMP
1d6ece71b8 is described below

commit 1d6ece71b84ce36419b2175aa0937c1825826280
Author: Masayuki Ishikawa <masayuki.ishik...@gmail.com>
AuthorDate: Tue Nov 19 11:17:44 2024 +0900

    arch: arm: Fix cxd56xx for SMP
    
    Summary:
    - In https://github.com/apache/nuttx/pull/14465,
      atomic_compare_exchange_weak_explicit() was newly introduced
      in semaphore. However, cxd56xx has an issue with the API
      if SMP is enabled (see up_testset2 in cxd56_testset.c).
    - This commit fixes the issue by using LIBC_ARCH_ATOMIC.
    
    Impact:
    - Only cxd56xx SoCs in SMP mode.
    
    Testing:
    - Tested with spresense:smp, spresense:wifi_smp
    - NOTE: If DEBUG_ASSERTIONS is enabled assert would be happend.
      I think this might be another issue.
    
    Signed-off-by: Masayuki Ishikawa <masayuki.ishik...@jp.sony.com>
---
 arch/arm/Kconfig | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig
index e9fe53064a..ff471deb02 100644
--- a/arch/arm/Kconfig
+++ b/arch/arm/Kconfig
@@ -672,6 +672,7 @@ config ARCH_CHIP_CXD56XX
        select ARCH_HAVE_MATH_H
        select ARCH_HAVE_I2CRESET
        select ARCH_HAVE_CUSTOM_VECTORS
+       select LIBC_ARCH_ATOMIC if SMP
        ---help---
                Sony CXD56XX (ARM Cortex-M4) architectures
 

Reply via email to