<p>Raul Rangel has uploaded this change for <strong>review</strong>.</p><p><a href="https://review.coreboot.org/27228">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">smm: Switch from %edx to %ebx<br><br>%edx gets clobbered before the c handler is invoked. This is just a<br>cleanup cl to make the next cl look clean.<br><br>BUG=b:80539294<br>TEST=verified SMI still works on grunt.<br><br>Change-Id: I21bf41ed4fdeaaa8737c883f202a39cb57c2b517<br>Signed-off-by: Raul E Rangel <rrangel@chromium.org><br>---<br>M src/cpu/x86/smm/smm_stub.S<br>1 file changed, 3 insertions(+), 3 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://review.coreboot.org:29418/coreboot refs/changes/28/27228/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/src/cpu/x86/smm/smm_stub.S b/src/cpu/x86/smm/smm_stub.S</span><br><span>index 3fea32c..060361b 100644</span><br><span>--- a/src/cpu/x86/smm/smm_stub.S</span><br><span>+++ b/src/cpu/x86/smm/smm_stub.S</span><br><span>@@ -132,9 +132,9 @@</span><br><span> 1:</span><br><span>      movl    stack_size, %eax</span><br><span>     mul     %ecx # %eax(stack_size) * %ecx(cpu) = %eax(offset)</span><br><span style="color: hsl(0, 100%, 40%);">-      movl    stack_top, %edx</span><br><span style="color: hsl(0, 100%, 40%);">- subl    %eax, %edx # %edx(stack_top) - %eax(offset) = %edx(stack_top)</span><br><span style="color: hsl(0, 100%, 40%);">-   mov     %edx, %esp</span><br><span style="color: hsl(120, 100%, 40%);">+    movl    stack_top, %ebx</span><br><span style="color: hsl(120, 100%, 40%);">+       subl    %eax, %ebx # %ebx(stack_top) - %eax(offset) = %ebx(stack_top)</span><br><span style="color: hsl(120, 100%, 40%);">+ mov     %ebx, %esp</span><br><span> </span><br><span>       pushl   $0x0 # push a NULL stack base pointer</span><br><span>        mov     %esp, %ebp</span><br><span></span><br></pre><p>To view, visit <a href="https://review.coreboot.org/27228">change 27228</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/27228"/><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: I21bf41ed4fdeaaa8737c883f202a39cb57c2b517 </div>
<div style="display:none"> Gerrit-Change-Number: 27228 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Raul Rangel <rrangel@chromium.org> </div>