1 ;------------------------------------------------------------------------------
3 ; Copyright (c) 2014, Intel Corporation. All rights reserved.<BR>
4 ; SPDX-License-Identifier: BSD-2-Clause-Patent
12 ; This is the code that goes from real-mode to protected mode.
13 ; It consumes the reset vector, calls two basic APIs from FSP binary.
15 ;------------------------------------------------------------------------------
23 EXTRN PlatformInit:NEAR
25 CallPeiCoreEntryPoint PROC PUBLIC
27 ; Obtain the hob list pointer
31 ; Obtain the stack information
52 ; Set stack top pointer
57 ; Push the hob list pointer
71 ; Push processor count to stack first, then BIST status (AP then BSP)
78 jae PushProcessorCount
81 ; Some processors report 0 logical processors. Effectively 0 = 1.
82 ; So we fix up the processor count
90 ; We need to implement a long-term solution for BIST capture. For now, we just copy BSP BIST
91 ; for all processor threads
100 ; Save Time-Stamp Counter
108 ; Pass entry point of the PEI core
111 push DWORD PTR ds:[edi]
114 ; Pass BFV into the PEI Core
117 push DWORD PTR ds:[edi]
120 ; Pass stack size into the PEI Core
130 ; Pass Control into the PEI Core
133 CallPeiCoreEntryPoint ENDP