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

acassis 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 b27c8384a21 ARM64: support more than 8 CPUS when SMP
b27c8384a21 is described below

commit b27c8384a2169415127eea66a09c72a9eb264f49
Author: sunjikun <[email protected]>
AuthorDate: Tue Aug 12 14:40:17 2025 +0800

    ARM64: support more than 8 CPUS when SMP
    
    support more than 8 CPUS when SMP
    
    Signed-off-by: sunjikun <[email protected]>
    Signed-off-by: hujun5 <[email protected]>
---
 arch/arm64/src/common/arm64_cpustart.c | 22 ++++++++++++++++++++--
 1 file changed, 20 insertions(+), 2 deletions(-)

diff --git a/arch/arm64/src/common/arm64_cpustart.c 
b/arch/arm64/src/common/arm64_cpustart.c
index 99c27054e21..92709b06a3c 100644
--- a/arch/arm64/src/common/arm64_cpustart.c
+++ b/arch/arm64/src/common/arm64_cpustart.c
@@ -68,7 +68,16 @@ uint64_t *const g_cpu_int_stacktop[CONFIG_SMP_NCPUS] =
 #if CONFIG_SMP_NCPUS > 4
   (uint64_t *)(g_interrupt_stacks[4] + INTSTACK_SIZE),
 #if CONFIG_SMP_NCPUS > 5
-#  error This logic needs to extended for CONFIG_SMP_NCPUS > 5
+  (uint64_t *)(g_interrupt_stacks[5] + INTSTACK_SIZE),
+#if CONFIG_SMP_NCPUS > 6
+  (uint64_t *)(g_interrupt_stacks[6] + INTSTACK_SIZE),
+#if CONFIG_SMP_NCPUS > 7
+  (uint64_t *)(g_interrupt_stacks[7] + INTSTACK_SIZE),
+#if CONFIG_SMP_NCPUS > 8
+#  error This logic needs to extended for CONFIG_SMP_NCPUS > 8
+#endif /* CONFIG_SMP_NCPUS > 8 */
+#endif /* CONFIG_SMP_NCPUS > 7 */
+#endif /* CONFIG_SMP_NCPUS > 6 */
 #endif /* CONFIG_SMP_NCPUS > 5 */
 #endif /* CONFIG_SMP_NCPUS > 4 */
 #endif /* CONFIG_SMP_NCPUS > 3 */
@@ -91,7 +100,16 @@ uint64_t *const g_cpu_int_fiq_stacktop[CONFIG_SMP_NCPUS] =
 #if CONFIG_SMP_NCPUS > 4
   (uint64_t *)(g_interrupt_fiq_stacks[4] + INTSTACK_SIZE),
 #if CONFIG_SMP_NCPUS > 5
-#  error This logic needs to extended for CONFIG_SMP_NCPUS > 5
+  (uint64_t *)(g_interrupt_fiq_stacks[5] + INTSTACK_SIZE),
+#if CONFIG_SMP_NCPUS > 6
+  (uint64_t *)(g_interrupt_fiq_stacks[6] + INTSTACK_SIZE),
+#if CONFIG_SMP_NCPUS > 7
+  (uint64_t *)(g_interrupt_fiq_stacks[7] + INTSTACK_SIZE),
+#if CONFIG_SMP_NCPUS > 8
+#  error This logic needs to extended for CONFIG_SMP_NCPUS > 8
+#endif /* CONFIG_SMP_NCPUS > 8 */
+#endif /* CONFIG_SMP_NCPUS > 7 */
+#endif /* CONFIG_SMP_NCPUS > 6 */
 #endif /* CONFIG_SMP_NCPUS > 5 */
 #endif /* CONFIG_SMP_NCPUS > 4 */
 #endif /* CONFIG_SMP_NCPUS > 3 */

Reply via email to