<p>Marshall Dawson has uploaded this change for <strong>review</strong>.</p><p><a href="https://review.coreboot.org/22848">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">inlcude/cpu/x86: Add clflush inline function<br><br>Change-Id: I74c5cc22f02302314ba010bc599051c1495a13cb<br>Signed-off-by: Marshall Dawson <marshalldawson3rd@gmail.com><br>---<br>M src/include/cpu/x86/cache.h<br>1 file changed, 5 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/48/22848/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">diff --git a/src/include/cpu/x86/cache.h b/src/include/cpu/x86/cache.h<br>index 2c8c44b..e0a3359 100644<br>--- a/src/include/cpu/x86/cache.h<br>+++ b/src/include/cpu/x86/cache.h<br>@@ -50,6 +50,11 @@<br>   asm volatile("invd" ::: "memory");<br> }<br> <br>+static inline void clflush(void *addr)<br>+{<br>+   asm volatile ("clflush (%0)"::"r" (addr));<br>+}<br>+<br> /* The following functions require the always_inline due to AMD<br>  * function STOP_CAR_AND_CPU that disables cache as<br>  * RAM, the cache as RAM stack can no longer be used. Called<br></pre><p>To view, visit <a href="https://review.coreboot.org/22848">change 22848</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/22848"/><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: I74c5cc22f02302314ba010bc599051c1495a13cb </div>
<div style="display:none"> Gerrit-Change-Number: 22848 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Marshall Dawson <marshalldawson3rd@gmail.com> </div>