The current code does not set the stack pointer for hart alone. The Linux kernel runs in s-mode and cannot set the stack pointer for m-mode. If m-mode does not have a separate stack for hart, then m-mode cannot save any state about the current hart.
Is it necessary to initialize the stack pointer for each hart?
Looking forward to your reply. Thank you.
WangXiang