summaryrefslogtreecommitdiffstats
path: root/src/arch/x86/boot/wakeup.S
diff options
context:
space:
mode:
Diffstat (limited to 'src/arch/x86/boot/wakeup.S')
-rw-r--r--src/arch/x86/boot/wakeup.S5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/arch/x86/boot/wakeup.S b/src/arch/x86/boot/wakeup.S
index a614b55f03e2..38d6ea43ae8d 100644
--- a/src/arch/x86/boot/wakeup.S
+++ b/src/arch/x86/boot/wakeup.S
@@ -24,7 +24,12 @@
/* CR0 bits */
#define PE (1 << 0)
+#ifdef __x86_64__
+ .code64
+#else
.code32
+#endif
+
.globl __wakeup
__wakeup:
/* First prepare the jmp to the resume vector */