diff options
| author | aozima <[email protected]> | 2023-08-26 07:36:25 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-08-26 07:36:25 +0800 |
| commit | 3e91307326e220e3217fc371f3b57cee8948df53 (patch) | |
| tree | 1100999fa6b1c4cfe5b1d58aefb899f5bbb99174 /libcpu | |
| parent | c85069f9fc25a8a7e166fb9e738256a77a2a2669 (diff) | |
fixed stack setup when using SMP. (#7978)
Diffstat (limited to 'libcpu')
| -rw-r--r-- | libcpu/aarch64/cortex-a/entry_point.S | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/libcpu/aarch64/cortex-a/entry_point.S b/libcpu/aarch64/cortex-a/entry_point.S index 3bdca7b81c..ee0ec86273 100644 --- a/libcpu/aarch64/cortex-a/entry_point.S +++ b/libcpu/aarch64/cortex-a/entry_point.S @@ -331,7 +331,11 @@ after_mmu_enable_cpux: b rt_hw_secondary_cpu_bsp_start #endif +#ifndef RT_CPUS_NR +#define RT_CPUS_NR 1 +#endif + .align 12 .el_stack: -.space (8192) -.el_stack_top:
\ No newline at end of file +.space (8192 * RT_CPUS_NR) +.el_stack_top: |
