1 ;------------------------------------------------------------------------------
3 ; Copyright (c) 2015 - 2016, Intel Corporation. All rights reserved.<BR>
4 ; SPDX-License-Identifier: BSD-2-Clause-Patent
8 ; Entry point for the coreboot UEFI payload.
10 ;------------------------------------------------------------------------------
15 extern ASM_PFX(SecStartup)
18 extern ASM_PFX(PcdGet32 (PcdPayloadFdMemBase))
23 ; Processor is in flat protected mode
25 ; @param[in] EAX Initial value of the EAX register (BIST: Built-in Self Test)
26 ; @param[in] DI 'BP': boot-strap processor, or 'AP': application processor
27 ; @param[in] EBP Pointer to the start of the Boot Firmware Volume
29 ; @return None This routine does not return
31 global ASM_PFX(_ModuleEntryPoint)
32 ASM_PFX(_ModuleEntryPoint):
34 ; Disable all the interrupts
38 ; Construct the temporary memory at 0x80000, length 0x10000
40 mov esp, (BASE_512KB + SIZE_64KB)
43 ; Pass BFV into the PEI Core
45 push DWORD [ASM_PFX(PcdGet32 (PcdPayloadFdMemBase))]
48 ; Pass stack base into the PEI Core
53 ; Pass stack size into the PEI Core
58 ; Pass Control into the PEI Core
60 call ASM_PFX(SecStartup)