2 ;------------------------------------------------------------------------------
4 ;* Copyright 2006 - 2009, Intel Corporation
5 ;* All rights reserved. This program and the accompanying materials
6 ;* are licensed and made available under the terms and conditions of the BSD License
7 ;* which accompanies this distribution. The full text of the license may be found at
8 ;* http://opensource.org/licenses/bsd-license.php
10 ;* THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
11 ;* WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
17 ;------------------------------------------------------------------------------
23 EXTERN SecCoreStartupWithStack:PROC
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
37 _ModuleEntryPoint PROC PUBLIC
40 ; Load temporary stack top at very low memory. The C code
41 ; can reload to a better address.
43 mov rsp, INITIAL_TOP_OF_STACK
47 ; Setup parameters and call SecCoreStartupWithStack
48 ; rcx: BootFirmwareVolumePtr
49 ; rdx: SecCoreEntryPoint
50 ; r8: PeiCoreEntryPoint
51 ; r9: TopOfCurrentStack
57 call SecCoreStartupWithStack
59 _ModuleEntryPoint ENDP