You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add per-hart stack allocation in RISC-V boot for SMP support
To support SMP, allocate separate stack memory regions for each hart
during boot.
This patch modifies the assembly entry code in arch/riscv/boot.c to
compute the initial stack pointer based on the hart ID, ensuring each
hart uses a distinct stack area of fixed size (STACK_SIZE_PER_HART).
This enables multiple harts to safely run concurrently without stack
collisions during early boot stages.
0 commit comments