<p>Marshall Dawson has uploaded this change for <strong>review</strong>.</p><p><a href="https://review.coreboot.org/20528">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">arch/x86/assembly_entry: align stack for car_stage_entry<br><br>At process _start, the stack is expected to be aligned to a<br>16-byte boundary.  Upon entry to any function the stack frame<br>must have the end of any arguments also aligned.  In other words<br>the value of %esp+4 or %rsp+8 is always a multiple of 16 (1).<br><br>Change the method for executing car_stage_entry from jmp to call.<br>This should keep the stack aligned regardless of a 32- or 64-bit<br>build.<br><br>Although 4-byte alignment is the minimum requirement for i386,<br>some AMD platforms use SSE instructions which expect 16-byte.<br><br>1) http://wiki.osdev.org/System_V_ABI<br>   See "Initial Stack and Register State" and "The Stack Frame"<br>   in the supplements.<br><br>Change-Id: I8a15514f551a8e17e9fe77b8402fe0d2b106972e<br>Signed-off-by: Marshall Dawson <marshalldawson3rd@gmail.com><br>---<br>M src/arch/x86/assembly_entry.S<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/28/20528/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">diff --git a/src/arch/x86/assembly_entry.S b/src/arch/x86/assembly_entry.S<br>index 56a5b63..465c02f 100644<br>--- a/src/arch/x86/assembly_entry.S<br>+++ b/src/arch/x86/assembly_entry.S<br>@@ -63,7 +63,7 @@<br>   jz      debug_spinloop<br> #endif<br> <br>-   jmp     car_stage_entry<br>+      call    car_stage_entry<br> <br> /* This is here for linking purposes. */<br> .weak car_stage_entry<br></pre><p>To view, visit <a href="https://review.coreboot.org/20528">change 20528</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/20528"/><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: I8a15514f551a8e17e9fe77b8402fe0d2b106972e </div>
<div style="display:none"> Gerrit-Change-Number: 20528 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Marshall Dawson <marshalldawson3rd@gmail.com> </div>