]> git.proxmox.com Git - mirror_edk2.git/blobdiff - OvmfPkg/Sec/X64/SecEntry.S
Remove ".intel_syntax", convert MASM to GAS.
[mirror_edk2.git] / OvmfPkg / Sec / X64 / SecEntry.S
index 42b30221700c751632f0f19ef8d8f1545da0b1ca..9855ea9d81acb81437523efd58e12b5f1ac29c5b 100644 (file)
@@ -34,7 +34,6 @@
 #  @return None
 #
 #
-.intel_syntax
 ASM_GLOBAL ASM_PFX(_ModuleEntryPoint)
 ASM_PFX(_ModuleEntryPoint):
 
@@ -42,7 +41,7 @@ ASM_PFX(_ModuleEntryPoint):
     # Load temporary stack top at very low memory.  The C code
     # can reload to a better address.
     #
-    mov     %rsp, INITIAL_TOP_OF_STACK
+    movq    $INITIAL_TOP_OF_STACK, %rsp 
     nop
 
     #
@@ -52,9 +51,9 @@ ASM_PFX(_ModuleEntryPoint):
     #   r8:  PeiCoreEntryPoint
     #   r9:  TopOfCurrentStack
     #
-    mov     %rcx, %rbp
-    mov     %rdx, %rsi
-    mov     %r8, %rdi
-    mov     %r9, %rsp
+    movq    %rbp, %rcx 
+    movq    %rsi, %rdx
+    movq    %rdi, %r8
+    movq    %rsp, %r9
     call    ASM_PFX(SecCoreStartupWithStack)