<p>Patrick Rudolph has uploaded this change for <strong>review</strong>.</p><p><a href="https://review.coreboot.org/23582">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">libpayload: enable cache and Write through<br><br>And enable cache and Write through.<br><br>Change-Id: I789f7725ad7b04518f99ebc8cb994d18eefe1d4c<br>Signed-off-by: Patrick Rudolph <siro@das-labor.org><br>---<br>M payloads/libpayload/arch/x86/main.c<br>1 file changed, 9 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/82/23582/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/payloads/libpayload/arch/x86/main.c b/payloads/libpayload/arch/x86/main.c</span><br><span>index f9a5e2c..5f7f505 100644</span><br><span>--- a/payloads/libpayload/arch/x86/main.c</span><br><span>+++ b/payloads/libpayload/arch/x86/main.c</span><br><span>@@ -62,6 +62,15 @@</span><br><span>       * user gets control goes here.</span><br><span>       */</span><br><span> </span><br><span style="color: hsl(120, 100%, 40%);">+       /* And enable cache and Write through */</span><br><span style="color: hsl(120, 100%, 40%);">+      __asm__ __volatile__ (</span><br><span style="color: hsl(120, 100%, 40%);">+                "movl %%cr0, %%eax\n\t"</span><br><span style="color: hsl(120, 100%, 40%);">+             "andl $0x9FFFFFFF, %%eax\n\t" /* clear CD, NW */</span><br><span style="color: hsl(120, 100%, 40%);">+            "movl %%eax, %%cr0\n\t"</span><br><span style="color: hsl(120, 100%, 40%);">+             : :</span><br><span style="color: hsl(120, 100%, 40%);">+           : "ax"</span><br><span style="color: hsl(120, 100%, 40%);">+      );</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span>         /*</span><br><span>    * Go to the entry point.</span><br><span>     * In the future we may care about the return value.</span><br><span></span><br></pre><p>To view, visit <a href="https://review.coreboot.org/23582">change 23582</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/23582"/><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: I789f7725ad7b04518f99ebc8cb994d18eefe1d4c </div>
<div style="display:none"> Gerrit-Change-Number: 23582 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Patrick Rudolph <siro@das-labor.org> </div>