<p>Ryan Salsamendi has uploaded this change for <strong>review</strong>.</p><p><a href="https://review.coreboot.org/20467">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">cpu/intel/haswell: Fix undefined behavior<br><br>Fix undefined behavior found by clang's -Wshift-sign-overflow. Left<br>shifting an int where the right operand is >= the width of the type<br>is undefined. Add UL suffix since it's safe for unsigned types.<br><br>Change-Id: Ieacf83d052bf4abfad639ef8e592bd8de17d16e6<br>Signed-off-by: Ryan Salsamendi <rsalsamendi@hotmail.com><br>---<br>M src/cpu/intel/haswell/haswell.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/67/20467/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">diff --git a/src/cpu/intel/haswell/haswell.h b/src/cpu/intel/haswell/haswell.h<br>index 608c5b5..6612509 100644<br>--- a/src/cpu/intel/haswell/haswell.h<br>+++ b/src/cpu/intel/haswell/haswell.h<br>@@ -112,7 +112,7 @@<br> <br> /* PCODE MMIO communications live in the MCHBAR. */<br> #define BIOS_MAILBOX_INTERFACE                       0x5da4<br>-#define  MAILBOX_RUN_BUSY                      (1 << 31)<br>+#define  MAILBOX_RUN_BUSY                     (1UL << 31)<br> #define  MAILBOX_BIOS_CMD_READ_PCS          1<br> #define  MAILBOX_BIOS_CMD_WRITE_PCS         2<br> #define  MAILBOX_BIOS_CMD_READ_CALIBRATION  0x509<br></pre><p>To view, visit <a href="https://review.coreboot.org/20467">change 20467</a>. To unsubscribe, 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/20467"/><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: Ieacf83d052bf4abfad639ef8e592bd8de17d16e6 </div>
<div style="display:none"> Gerrit-Change-Number: 20467 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Ryan Salsamendi <rsalsamendi@hotmail.com> </div>