1 #------------------------------------------------------------------------------
3 # Copyright (c) 2014, Intel Corporation. All rights reserved.<BR>
4 # SPDX-License-Identifier: BSD-2-Clause-Patent
12 # Find and call SecStartup
14 #------------------------------------------------------------------------------
16 ASM_GLOBAL ASM_PFX(CallPeiCoreEntryPoint)
17 ASM_PFX(CallPeiCoreEntryPoint):
19 # Obtain the hob list pointer
23 # Obtain the stack information
37 call ASM_PFX(PlatformInit)
44 # Set stack top pointer
49 # Push the hob list pointer
63 # Push processor count to stack first, then BIST status (AP then BSP)
68 andl $0x000000FF, %ebx
70 jae PushProcessorCount
73 # Some processors report 0 logical processors. Effectively 0 = 1.
74 # So we fix up the processor count
82 # We need to implement a long-term solution for BIST capture. For now, we just copy BSP BIST
83 # for all processor threads
92 # Save Time-Stamp Counter
100 # Pass entry point of the PEI core
102 movl $0xFFFFFFE0, %edi
106 # Pass BFV into the PEI Core
108 movl $0xFFFFFFFC, %edi
112 # Pass stack size into the PEI Core
122 # Pass Control into the PEI Core
124 call ASM_PFX(SecStartup)