<p>Jonathan Neuschäfer has uploaded this change for <strong>review</strong>.</p><p><a href="https://review.coreboot.org/25791">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">[WIP/TODO] arch/riscv: Configure delegation only in ramstage<br><br>On the FU540 the bootblock runs on a core without lesser privilege<br>modes, so the medeleg/mideleg CSRs are not implemented on that core.<br><br>Change-Id: Idad97e42bac2ff438dd233a5d125f93594505d63<br>Signed-off-by: Jonathan Neuschäfer <j.neuschaefer@gmx.net><br>---<br>M src/arch/riscv/virtual_memory.c<br>1 file changed, 3 insertions(+), 2 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://review.coreboot.org:29418/coreboot refs/changes/91/25791/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/src/arch/riscv/virtual_memory.c b/src/arch/riscv/virtual_memory.c</span><br><span>index 3bee868..7830519 100644</span><br><span>--- a/src/arch/riscv/virtual_memory.c</span><br><span>+++ b/src/arch/riscv/virtual_memory.c</span><br><span>@@ -54,9 +54,10 @@</span><br><span> </span><br><span>  // Delegate supervisor timer and other interrupts</span><br><span>    // to supervisor mode.</span><br><span style="color: hsl(0, 100%, 40%);">-  set_csr(mideleg,  MIP_STIP | MIP_SSIP);</span><br><span style="color: hsl(120, 100%, 40%);">+       //set_csr(mideleg,  MIP_STIP | MIP_SSIP);</span><br><span> </span><br><span style="color: hsl(0, 100%, 40%);">-   set_csr(medeleg, delegate);</span><br><span style="color: hsl(120, 100%, 40%);">+   //set_csr(medeleg, delegate);</span><br><span style="color: hsl(120, 100%, 40%);">+ (void)delegate;</span><br><span> </span><br><span>  // Enable all user/supervisor-mode counters using</span><br><span>    // v1.10 register addresses.</span><br><span></span><br></pre><p>To view, visit <a href="https://review.coreboot.org/25791">change 25791</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/25791"/><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: Idad97e42bac2ff438dd233a5d125f93594505d63 </div>
<div style="display:none"> Gerrit-Change-Number: 25791 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Jonathan Neuschäfer <j.neuschaefer@gmx.net> </div>