summaryrefslogtreecommitdiff
path: root/src/cpu
diff options
context:
space:
mode:
Diffstat (limited to 'src/cpu')
-rw-r--r--src/cpu/x86/smm/smm_stub.S6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/cpu/x86/smm/smm_stub.S b/src/cpu/x86/smm/smm_stub.S
index 0c05032577..ba66db9179 100644
--- a/src/cpu/x86/smm/smm_stub.S
+++ b/src/cpu/x86/smm/smm_stub.S
@@ -132,9 +132,9 @@ smm_trampoline32:
1:
movl stack_size, %eax
mul %ecx /* %eax(stack_size) * %ecx(cpu) = %eax(offset) */
- movl stack_top, %edx
- subl %eax, %edx /* global_stack_top - offset = stack_top */
- mov %edx, %esp
+ movl stack_top, %ebx
+ subl %eax, %ebx /* global_stack_top - offset = stack_top */
+ mov %ebx, %esp
/* Create stack frame by pushing a NULL stack base pointer */
pushl $0x0