<p>Raul Rangel has uploaded this change for <strong>review</strong>.</p><p><a href="https://review.coreboot.org/27812">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">exception: Fix segment error code mask<br><br>The segment error descriptor is actually 13 bits long.<br><br>BUG=b:109749762<br>TEST=Verified by causing a segment error<br><br>Change-Id: I3439f9ce1e8cf0c472c4eb82d74a787718c9609f<br>Signed-off-by: Raul E Rangel <rrangel@chromium.org><br>---<br>M payloads/libpayload/arch/x86/exception.c<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/12/27812/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/payloads/libpayload/arch/x86/exception.c b/payloads/libpayload/arch/x86/exception.c</span><br><span>index f6bb8c9..b562660 100644</span><br><span>--- a/payloads/libpayload/arch/x86/exception.c</span><br><span>+++ b/payloads/libpayload/arch/x86/exception.c</span><br><span>@@ -59,7 +59,7 @@</span><br><span> </span><br><span> static void print_segment_error_code(u32 code)</span><br><span> {</span><br><span style="color: hsl(0, 100%, 40%);">-        printf("%#x - descriptor %#x in the ", code, (code >> 3) & 0x1f);</span><br><span style="color: hsl(120, 100%, 40%);">+ printf("%#x - descriptor %#x in the ", code, (code >> 3) & 0x1FFF);</span><br><span>      if (code & (0x1 << 1)) {</span><br><span>           printf("IDT");</span><br><span>     } else {</span><br><span></span><br></pre><p>To view, visit <a href="https://review.coreboot.org/27812">change 27812</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/27812"/><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: I3439f9ce1e8cf0c472c4eb82d74a787718c9609f </div>
<div style="display:none"> Gerrit-Change-Number: 27812 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Raul Rangel <rrangel@chromium.org> </div>