3 #------------------------------------------------------------------------------
5 #* Copyright 2006 - 2009, Intel Corporation
6 #* All rights reserved. This program and the accompanying materials
7 #* are licensed and made available under the terms and conditions of the BSD License
8 #* which accompanies this distribution. The full text of the license may be found at
9 #* http://opensource.org/licenses/bsd-license.php
11 #* THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
12 #* WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
18 #------------------------------------------------------------------------------
23 #EXTERN ASM_PFX(SecCoreStartupWithStack)
28 # Processor is in flat protected mode
30 # @param ESI Pointer to SEC Core Entry Point (this function)
31 # @param EDI Pointer to PEI Core Entry Point
32 # @param EBP Pointer to the start of the Boot Firmware Volume
38 ASM_GLOBAL ASM_PFX(_ModuleEntryPoint)
39 ASM_PFX(_ModuleEntryPoint):
42 # Load temporary stack top at very low memory. The C code
43 # can reload to a better address.
45 mov %rsp, INITIAL_TOP_OF_STACK
49 # Setup parameters and call SecCoreStartupWithStack
50 # rcx: BootFirmwareVolumePtr
51 # rdx: SecCoreEntryPoint
52 # r8: PeiCoreEntryPoint
53 # r9: TopOfCurrentStack
59 call ASM_PFX(SecCoreStartupWithStack)