aboutsummaryrefslogtreecommitdiff
path: root/src/cpu/qemu-x86/cache_as_ram_bootblock.S
diff options
context:
space:
mode:
Diffstat (limited to 'src/cpu/qemu-x86/cache_as_ram_bootblock.S')
-rw-r--r--src/cpu/qemu-x86/cache_as_ram_bootblock.S3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/cpu/qemu-x86/cache_as_ram_bootblock.S b/src/cpu/qemu-x86/cache_as_ram_bootblock.S
index 415ed247df..148948ba31 100644
--- a/src/cpu/qemu-x86/cache_as_ram_bootblock.S
+++ b/src/cpu/qemu-x86/cache_as_ram_bootblock.S
@@ -27,6 +27,9 @@ cache_as_ram:
/* Align the stack and keep aligned for call to bootblock_c_entry() */
and $0xfffffff0, %esp
+ /* entry64.inc preserves ebx. */
+#include <cpu/x86/64bit/entry64.inc>
+
/* Restore the BIST result and timestamps. */
#if defined(__x86_64__)
movd %mm2, %rdi