<p>Xiang Wang has uploaded this change for <strong>review</strong>.</p><p><a href="https://review.coreboot.org/27545">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">riscv: update src/arch/riscv/bootblock.S<br><br>Save the FDT pointer to memory. Make mscratch vacate for exception context switching.<br><br>Change-Id: I24554528969e36c9e98c0ebd733e002e215a52e5<br>Signed-off-by: Xiang Wang <wxjstz@126.com><br>---<br>M src/arch/riscv/bootblock.S<br>1 file changed, 6 insertions(+), 0 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://review.coreboot.org:29418/coreboot refs/changes/45/27545/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/src/arch/riscv/bootblock.S b/src/arch/riscv/bootblock.S</span><br><span>index 81a4455..f92ed4b 100644</span><br><span>--- a/src/arch/riscv/bootblock.S</span><br><span>+++ b/src/arch/riscv/bootblock.S</span><br><span>@@ -37,6 +37,12 @@</span><br><span>         # initialize cache as ram</span><br><span>    call cache_as_ram</span><br><span> </span><br><span style="color: hsl(120, 100%, 40%);">+ # Save the FDT pointer to memory.</span><br><span style="color: hsl(120, 100%, 40%);">+     # Make mscratch vacate for exception context switching.</span><br><span style="color: hsl(120, 100%, 40%);">+       csrrw a1, mscratch, zero</span><br><span style="color: hsl(120, 100%, 40%);">+      la    t0, rom_fdt</span><br><span style="color: hsl(120, 100%, 40%);">+     sd    a1, 0(t0)</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span>    # initialize stack point for each hart</span><br><span>       # and the stack must be page-aligned.</span><br><span>        # 0xDEADBEEF used to check stack overflow</span><br><span></span><br></pre><p>To view, visit <a href="https://review.coreboot.org/27545">change 27545</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://review.coreboot.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://review.coreboot.org/27545"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: coreboot </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>
<div style="display:none"> Gerrit-Change-Id: I24554528969e36c9e98c0ebd733e002e215a52e5 </div>
<div style="display:none"> Gerrit-Change-Number: 27545 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Xiang Wang <wxjstz@126.com> </div>