<p>Xiang Wang has uploaded this change for <strong>review</strong>.</p><p><a href="https://review.coreboot.org/28394">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">riscv: Fix the definition of DEFINE_MPRV_READ<br><br>Must to set MXR, when needs to read the page which is execution-only.<br>So make this change.<br><br>Change-Id: I19519782fe791982a8fbd48ef33b5a92a3c48bfc<br>Signed-off-by: Xiang Wang <wxjstz@126.com><br>---<br>M src/arch/riscv/include/vm.h<br>1 file changed, 1 insertion(+), 1 deletion(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://review.coreboot.org:29418/coreboot refs/changes/94/28394/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/src/arch/riscv/include/vm.h b/src/arch/riscv/include/vm.h</span><br><span>index a30d6bb..60a8fb7 100644</span><br><span>--- a/src/arch/riscv/include/vm.h</span><br><span>+++ b/src/arch/riscv/include/vm.h</span><br><span>@@ -42,7 +42,7 @@</span><br><span> static inline type name(type *p); \</span><br><span> static inline type name(type *p) \</span><br><span> { \</span><br><span style="color: hsl(0, 100%, 40%);">- size_t mprv = MSTATUS_MPRV; \</span><br><span style="color: hsl(120, 100%, 40%);">+ size_t mprv = MSTATUS_MPRV | MSTATUS_MXR; \</span><br><span> type value; \</span><br><span> asm ( \</span><br><span> "csrs mstatus, %1\n" \</span><br><span></span><br></pre><p>To view, visit <a href="https://review.coreboot.org/28394">change 28394</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/28394"/><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: I19519782fe791982a8fbd48ef33b5a92a3c48bfc </div>
<div style="display:none"> Gerrit-Change-Number: 28394 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Xiang Wang <wxjstz@126.com> </div>