1 ;------------------------------------------------------------------------------
3 ; Copyright (c) 2014, 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 ; Find and call SecStartup
20 ;------------------------------------------------------------------------------
28 EXTRN PlatformInit:NEAR
30 CallPeiCoreEntryPoint PROC PUBLIC
32 ; Obtain the hob list pointer
36 ; Obtain the stack information
57 ; Set stack top pointer
62 ; Push the hob list pointer
76 ; Push processor count to stack first, then BIST status (AP then BSP)
83 jae PushProcessorCount
86 ; Some processors report 0 logical processors. Effectively 0 = 1.
87 ; So we fix up the processor count
95 ; We need to implement a long-term solution for BIST capture. For now, we just copy BSP BIST
96 ; for all processor threads
105 ; Save Time-Stamp Counter
113 ; Pass entry point of the PEI core
116 push DWORD PTR ds:[edi]
119 ; Pass BFV into the PEI Core
122 push DWORD PTR ds:[edi]
125 ; Pass stack size into the PEI Core
135 ; Pass Control into the PEI Core
138 CallPeiCoreEntryPoint ENDP