Remove ".intel_syntax", convert MASM to GAS.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9080 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
gikidy 2009-08-17 06:16:40 +00:00
parent 3668c083cd
commit 16e864a270
2 changed files with 11 additions and 13 deletions

View File

@ -37,7 +37,6 @@
# @return None # @return None
# #
# #
.intel_syntax
ASM_GLOBAL ASM_PFX(_ModuleEntryPoint) ASM_GLOBAL ASM_PFX(_ModuleEntryPoint)
ASM_PFX(_ModuleEntryPoint): ASM_PFX(_ModuleEntryPoint):
@ -45,17 +44,17 @@ ASM_PFX(_ModuleEntryPoint):
# Load temporary stack top at very low memory. The C code # Load temporary stack top at very low memory. The C code
# can reload to a better address. # can reload to a better address.
# #
mov eax, INITIAL_TOP_OF_STACK movl $INITIAL_TOP_OF_STACK, %eax
mov esp, eax movl %eax, %esp
nop nop
# #
# Call into C code # Call into C code
# #
push eax pushl %eax
push edi pushl %edi
push esi pushl %esi
push ebp pushl %ebp
call ASM_PFX(SecCoreStartupWithStack) call ASM_PFX(SecCoreStartupWithStack)

View File

@ -34,7 +34,6 @@
# @return None # @return None
# #
# #
.intel_syntax
ASM_GLOBAL ASM_PFX(_ModuleEntryPoint) ASM_GLOBAL ASM_PFX(_ModuleEntryPoint)
ASM_PFX(_ModuleEntryPoint): ASM_PFX(_ModuleEntryPoint):
@ -42,7 +41,7 @@ ASM_PFX(_ModuleEntryPoint):
# Load temporary stack top at very low memory. The C code # Load temporary stack top at very low memory. The C code
# can reload to a better address. # can reload to a better address.
# #
mov %rsp, INITIAL_TOP_OF_STACK movq $INITIAL_TOP_OF_STACK, %rsp
nop nop
# #
@ -52,9 +51,9 @@ ASM_PFX(_ModuleEntryPoint):
# r8: PeiCoreEntryPoint # r8: PeiCoreEntryPoint
# r9: TopOfCurrentStack # r9: TopOfCurrentStack
# #
mov %rcx, %rbp movq %rbp, %rcx
mov %rdx, %rsi movq %rsi, %rdx
mov %r8, %rdi movq %rdi, %r8
mov %r9, %rsp movq %rsp, %r9
call ASM_PFX(SecCoreStartupWithStack) call ASM_PFX(SecCoreStartupWithStack)