1 ;------------------------------------------------------------------------------
3 ; Copyright (c) 2016, Intel Corporation. All rights reserved.<BR>
4 ; SPDX-License-Identifier: BSD-2-Clause-Patent
12 ; Find and call SecStartup
14 ;------------------------------------------------------------------------------
18 extern ASM_PFX(SecStartup)
19 extern ASM_PFX(PlatformInit)
21 global ASM_PFX(CallPeiCoreEntryPoint)
22 ASM_PFX(CallPeiCoreEntryPoint):
24 ; Obtain the hob list pointer
28 ; Obtain the stack information
42 call ASM_PFX(PlatformInit)
49 ; Set stack top pointer
54 ; Push the hob list pointer
68 ; Push processor count to stack first, then BIST status (AP then BSP)
75 jae PushProcessorCount
78 ; Some processors report 0 logical processors. Effectively 0 = 1.
79 ; So we fix up the processor count
87 ; We need to implement a long-term solution for BIST capture. For now, we just copy BSP BIST
88 ; for all processor threads
97 ; Save Time-Stamp Counter
105 ; Pass entry point of the PEI core
111 ; Pass BFV into the PEI Core
117 ; Pass stack size into the PEI Core
127 ; Pass Control into the PEI Core
129 call ASM_PFX(SecStartup)