<div>This is the code used to exits M-Mode.</div><div>hart0 was paused before , because hart0 does not support S-Mode and cannot run kernel code.</div><div>So there is no status information for hart0.<br></div><br><div><sign signid="99"><div style="color:#909090;font-family:Arial Narrow;font-size:12px">------------------</div><div style="font-size:14px;font-family:Verdana;color:#000;"><div style="overflow:hidden;"><div class="l_box" style="float:left;height:100px;margin:35px 10px 10px 0;padding:0 10px 0 15px;border-right:1px solid #dedede;"><div class="logo" style="height:35px;margin:35px 0 0 0;float:left;"><img src="https://exmail.qq.com/cgi-bin/viewfile?type=logo&domain=tya.email"></div></div><div class="c_detail" style="float:left;padding-top:35px;line-height:22px;color:#a0a0a0;zoom:1;"><h4 class="name" style="margin:0;font-size:14px;font-weight:bold;line-height:28px;color:#000;zoom:1;">王翔</h4><p class="position" style="margin:0;">安全研究员</p><p class="department" style="margin:0;">广州市腾御安信息科技有限公司</p><p class="phone" style="margin:0;"></p><p class="mobile" style="margin:0;"></p><p class="addr" style="margin:0;line-height:22px;color:#a0a0a0;">广州市天河区珠江新城华穗路406号保利克洛维二期中景A座1020-1024</p></div></div></div></sign></div><div> </div><div><includetail><div> </div><div> This is the code used to exits M-Mode. hart0 was paused before , because
 hart0 does not support S-Mode and cannot run kernel code.<br></div><div style="font:Verdana normal 14px;color:#000;"><div style="FONT-SIZE: 12px;FONT-FAMILY: Arial Narrow;padding:2px 0 2px 0;">------------------ Original ------------------This is the code used to exits M-Mode. hart0 was paused before , because
 hart0 does not support S-Mode and cannot run kernel code.<br></div><div style="FONT-SIZE: 12px;background:#efefef;padding:8px;"><div id="menu_sender"><b>From: </b> "Jonathan Neuschäfer"<j.neuschaefer@gmx.net>;This is the code used to exits M-Mode. hart0 was paused before , because
 hart0 does not supThis is the code used to exits M-Mode. hart0 was paused before , because
 hart0 does not support S-Mode and cannot run kernel code.<br>port S-Mode and cannot run kernel code.This is the code used to exits M-Mode. hart0 was paused before , because
 hart0 does not support S-Mode and cannot run kernel code.<br></div><div><b>Date: </b> Mon, Dec 10, 2018 07:16 PMThis is the code used to exits M-Mode. hart0 was paused before , because
 hart0 does not support S-Mode and cannot run kernel code.<br></div><div><b>To: </b> "王翔"<merle@tya.email>; <wbr></div><div><b>Cc: </b> "coreboot"<coreboot@coreboot.org>; "j.neuschaefer"<j.neuschaefer@gmx.net>; "philipp"<philipp@hug.cx>; "citypw"<citypw@gmail.com>; <wbr>This is the code used to exits M-Mode. hart0 was paused before , because
 hart0 does not support S-Mode and cannot run kernel code.<br></div><div><b>Subject: </b> Re: The problem of coreboot porting to fu540</div></div><div> </div><div style="position:relative;">Hi,<br><br>On Mon, Dec 10, 2018 at 05:29:44PM +0800, 王翔 wrote:This is the code used to exits M-Mode. hart0 was paused before , because
 hart0 does not support S-Mode and cannot run kernel code.<br>This is the code used to exits M-Mode. hart0 was paused before , because
 hart0 does not support S-Mode and cannot run kernThis is the code used to exits M-Mode. hart0 was paused before , because
 hart0 does not support S-Mode and cannot run kernel code.<br>el code.<br><br>> I use bbl as the coreboot's payload, bbl can start and running into the enter_supervisor_mode function, but can't continue. This is the code used to exits M-Mode. hart0 was paused before , because
 hart0 does not support S-Mode and cannot run kernel code.<br><br>> <br>> I added some code to print register state before mret and print memory on target address.<br>> I debugged it for a long time and didn't know where the problem was. hoping to get your help.<br>> <br>> <br>> Below is my output:<br>> <br>> ```<br>> <br>> mhartid  : 2<br>[...]<br>> mhartid  : 1<br>[...]<br>> mhartid  : 3<br>[...]<br>> mhartid  : 4<br>[...]<br><br><br>My first guess is that BBL is waiting for Hart 0, but I have not looked<br>at BBL's code to verify that this could be the case.<br><br><br>Jonathan<br><br></div></div><!--<![endif]--></includetail></div>