1 ;------------------------------------------------------------------------------
3 ; Copyright (c) 2015 - 2016, 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.
14 ; Entry point for the coreboot UEFI payload.
16 ;------------------------------------------------------------------------------
21 extern ASM_PFX(SecStartup)
24 extern ASM_PFX(PcdGet32 (PcdPayloadFdMemBase))
29 ; Processor is in flat protected mode
31 ; @param[in] EAX Initial value of the EAX register (BIST: Built-in Self Test)
32 ; @param[in] DI 'BP': boot-strap processor, or 'AP': application processor
33 ; @param[in] EBP Pointer to the start of the Boot Firmware Volume
35 ; @return None This routine does not return
37 global ASM_PFX(_ModuleEntryPoint)
38 ASM_PFX(_ModuleEntryPoint):
40 ; Disable all the interrupts
44 ; Construct the temporary memory at 0x80000, length 0x10000
46 mov esp, (BASE_512KB + SIZE_64KB)
49 ; Pass BFV into the PEI Core
51 push DWORD [ASM_PFX(PcdGet32 (PcdPayloadFdMemBase))]
54 ; Pass stack base into the PEI Core
59 ; Pass stack size into the PEI Core
64 ; Pass Control into the PEI Core
66 call ASM_PFX(SecStartup)