1 ;------------------------------------------------------------------------------
3 ; Copyright (c) 2013, Intel Corporation. All rights reserved.<BR>
4 ; This program and the accompanying materials
5 ; are licensed and made available under the terms and conditions of the BSD License
6 ; which accompanies this distribution. The full text of the license may be found at
7 ; http://opensource.org/licenses/bsd-license.php.
9 ; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
10 ; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
18 ; This is the code that begins in protected mode.
19 ; It will transfer the control to pei core.
21 ;------------------------------------------------------------------------------
31 EXTRN PcdGet32 (PcdPayloadFdMemBase):DWORD
38 ; Processor is in flat protected mode
40 ; @param[in] EAX Initial value of the EAX register (BIST: Built-in Self Test)
41 ; @param[in] DI 'BP': boot-strap processor, or 'AP': application processor
42 ; @param[in] EBP Pointer to the start of the Boot Firmware Volume
44 ; @return None This routine does not return
47 _ModuleEntryPoint PROC PUBLIC
49 ; Disable all the interrupts
53 ; Construct the temporary memory at 0x80000, length 0x10000
55 mov esp, (BASE_512KB + SIZE_64KB)
58 ; Pass BFV into the PEI Core
60 push PcdGet32 (PcdPayloadFdMemBase)
63 ; Pass stack base into the PEI Core
68 ; Pass stack size into the PEI Core
73 ; Pass Control into the PEI Core
76 _ModuleEntryPoint ENDP