<p>Lubomir Rintel has uploaded this change for <strong>review</strong>.</p><p><a href="https://review.coreboot.org/25796">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">cpu/via/car: ensure CAR ends up zeroed out<br><br>We need to ensure the cache as ram area is set to all zeroes so that<br>car_migrated works.<br><br>Despite a comment claims the previous value is a test pattern it's<br>actually not used for any testing. Drop the comment too.<br><br>Change-Id: I1c91acbca8a860c2ed9c691d08d18718604682d8<br>Signed-off-by: Lubomir Rintel <lkundrak@v3.sk><br>---<br>M src/cpu/via/car/cache_as_ram.inc<br>1 file changed, 2 insertions(+), 6 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://review.coreboot.org:29418/coreboot refs/changes/96/25796/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/src/cpu/via/car/cache_as_ram.inc b/src/cpu/via/car/cache_as_ram.inc</span><br><span>index 2c19453..a131517 100644</span><br><span>--- a/src/cpu/via/car/cache_as_ram.inc</span><br><span>+++ b/src/cpu/via/car/cache_as_ram.inc</span><br><span>@@ -149,12 +149,8 @@</span><br><span>       movl    %esi, %edi</span><br><span>   movl    $(CacheSize >> 2), %ecx</span><br><span> </span><br><span style="color: hsl(0, 100%, 40%);">-       /*</span><br><span style="color: hsl(0, 100%, 40%);">-       * 0x5c5c5c5c is a memory test pattern.</span><br><span style="color: hsl(0, 100%, 40%);">-  * TODO: Check if everything works with the zero pattern as well.</span><br><span style="color: hsl(0, 100%, 40%);">-        */</span><br><span style="color: hsl(0, 100%, 40%);">-     /* xorl %eax, %eax */</span><br><span style="color: hsl(0, 100%, 40%);">-   xorl    $0x5c5c5c5c, %eax</span><br><span style="color: hsl(120, 100%, 40%);">+     /* Zero out the cache-as-ram area. */</span><br><span style="color: hsl(120, 100%, 40%);">+ xorl    %eax, %eax</span><br><span>   rep     stosl</span><br><span> </span><br><span> #ifdef CARTEST</span><br><span></span><br></pre><p>To view, visit <a href="https://review.coreboot.org/25796">change 25796</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/25796"/><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: I1c91acbca8a860c2ed9c691d08d18718604682d8 </div>
<div style="display:none"> Gerrit-Change-Number: 25796 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Lubomir Rintel <lkundrak@v3.sk> </div>