> In short: Because it was easier to delay the problem until later.<br><div><sign signid="99"><div style="font:Verdana normal 14px;color:#000;"><div style="position:relative;">><br>>On Thu, May 17, 2018 at 03:55:37PM +0800, 王翔 wrote:<br>>> The current code does not set the stack pointer for hart alone.<br>>> The Linux kernel runs in s-mode and cannot set the stack pointer for m-mode.<br>>> If m-mode does not have a separate stack for hart, then m-mode cannot save any state about the current hart.<br>>> <br>>> Is it necessary to initialize the stack pointer for each hart?<br>><br>>Yes, I think this needs to be implemented.<br>><br>>Note also, that the new SBI based on the ecall instruction is not<br>>implemented in coreboot.<br>><br>><br>>Jonathan Neuschäfer<br><br>Is coreboot's payload a bootloader running in m-mode ?<br>If not, how does the SBI interrupt service be implemented ?<br><br>WangXiang<br><span id="result_box" class="short_text" lang="en"><span class=""></span></span></div></div></sign></div><div><includetail><!--<![endif]--></includetail></div>