1 ;------------------------------------------------------------------------------
3 ; Copyright (c) 2013, Intel Corporation. All rights reserved.<BR>
4 ; SPDX-License-Identifier: BSD-2-Clause-Patent
12 ; This is the code that begins in protected mode.
13 ; It will transfer the control to pei core.
15 ;------------------------------------------------------------------------------
25 EXTRN PcdGet32 (PcdPayloadFdMemBase):DWORD
32 ; Processor is in flat protected mode
34 ; @param[in] EAX Initial value of the EAX register (BIST: Built-in Self Test)
35 ; @param[in] DI 'BP': boot-strap processor, or 'AP': application processor
36 ; @param[in] EBP Pointer to the start of the Boot Firmware Volume
38 ; @return None This routine does not return
41 _ModuleEntryPoint PROC PUBLIC
43 ; Disable all the interrupts
47 ; Construct the temporary memory at 0x80000, length 0x10000
49 mov esp, (BASE_512KB + SIZE_64KB)
52 ; Pass BFV into the PEI Core
54 push PcdGet32 (PcdPayloadFdMemBase)
57 ; Pass stack base into the PEI Core
62 ; Pass stack size into the PEI Core
67 ; Pass Control into the PEI Core
70 _ModuleEntryPoint ENDP