git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9080
6f19259b-4bc3-4df7-8a09-
765794883524
# @return None
#
#
-.intel_syntax
ASM_GLOBAL ASM_PFX(_ModuleEntryPoint)
ASM_PFX(_ModuleEntryPoint):
# Load temporary stack top at very low memory. The C code
# can reload to a better address.
#
- mov eax, INITIAL_TOP_OF_STACK
- mov esp, eax
+ movl $INITIAL_TOP_OF_STACK, %eax
+ movl %eax, %esp
nop
#
# Call into C code
#
- push eax
- push edi
- push esi
- push ebp
+ pushl %eax
+ pushl %edi
+ pushl %esi
+ pushl %ebp
call ASM_PFX(SecCoreStartupWithStack)
# @return None
#
#
-.intel_syntax
ASM_GLOBAL ASM_PFX(_ModuleEntryPoint)
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
#
# 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)