1
0
Эх сурвалжийг харах

fixed stack setup when using SMP. (#7978)

aozima 1 жил өмнө
parent
commit
3e91307326

+ 6 - 2
libcpu/aarch64/cortex-a/entry_point.S

@@ -331,7 +331,11 @@ after_mmu_enable_cpux:
     b rt_hw_secondary_cpu_bsp_start
     b rt_hw_secondary_cpu_bsp_start
 #endif
 #endif
 
 
+#ifndef RT_CPUS_NR
+#define RT_CPUS_NR 1
+#endif
+
 .align 12
 .align 12
 .el_stack:
 .el_stack:
-.space (8192)
-.el_stack_top:
+.space (8192 * RT_CPUS_NR)
+.el_stack_top: