<p>Philipp Hug has uploaded this change for <strong>review</strong>.</p><p><a href="https://review.coreboot.org/28605">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">arch/riscv: Only execute on hart 0 for now<br><br>Only execute coreboot on hart 0 until synchronisation between hart's is ready.<br>Change-Id: I2181e79572fbb9cc7bee39a3c2298c0dae6c1658<br>Signed-off-by: Philipp Hug <philipp@hug.cx><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/05/28605/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..95e1923 100644</span><br><span>--- a/src/arch/riscv/bootblock.S</span><br><span>+++ b/src/arch/riscv/bootblock.S</span><br><span>@@ -24,6 +24,12 @@</span><br><span> .global _estack</span><br><span> .globl _start</span><br><span> _start:</span><br><span style="color: hsl(120, 100%, 40%);">+    csrr a0, mhartid</span><br><span style="color: hsl(120, 100%, 40%);">+      li a3, 0</span><br><span style="color: hsl(120, 100%, 40%);">+      beq a0, a3, _hart_zero</span><br><span style="color: hsl(120, 100%, 40%);">+_hart_loop:</span><br><span style="color: hsl(120, 100%, 40%);">+   j _hart_loop</span><br><span style="color: hsl(120, 100%, 40%);">+_hart_zero:</span><br><span> </span><br><span>        # The boot ROM may pass the following arguments to coreboot:</span><br><span>         #   a0: the value of mhartid</span><br><span></span><br></pre><p>To view, visit <a href="https://review.coreboot.org/28605">change 28605</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/28605"/><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: I2181e79572fbb9cc7bee39a3c2298c0dae6c1658 </div>
<div style="display:none"> Gerrit-Change-Number: 28605 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Philipp Hug <philipp@hug.cx> </div>