2 Master header file for SecCore.
4 Copyright (c) 2014, Intel Corporation. All rights reserved.<BR>
5 SPDX-License-Identifier: BSD-2-Clause-Patent
15 #include <Ppi/TopOfTemporaryRam.h>
17 #include <Library/BaseLib.h>
18 #include <Library/DebugLib.h>
19 #include <Library/PcdLib.h>
20 #include <Library/BaseMemoryLib.h>
21 #include <Library/FspPlatformSecLib.h>
22 #include <Library/FspPlatformInfoLib.h>
23 #include <Library/UefiCpuLib.h>
24 #include <Library/PeCoffGetEntryPointLib.h>
25 #include <Library/PeCoffExtraActionLib.h>
26 #include <Library/DebugAgentLib.h>
29 #include <FspInfoHeader.h>
31 #define SEC_IDT_ENTRY_COUNT 34
33 typedef struct _SEC_IDT_TABLE
{
35 // Reserved 8 bytes preceding IDT to store EFI_PEI_SERVICES**, since IDT base
36 // address should be 8-byte alignment.
37 // Note: For IA32, only the 4 bytes immediately preceding IDT is used to store
41 UINT64 IdtTable
[SEC_IDT_ENTRY_COUNT
];
45 Entry point to the C language phase of SEC. After the SEC assembly
46 code has initialized some temporary memory and set up the stack,
47 the control is transferred to this function.
49 @param[in] SizeOfRam Size of the temporary memory available for use.
50 @param[in] TempRamBase Base address of temporary ram
51 @param[in] BootFirmwareVolume Base address of the Boot Firmware Volume.
57 IN UINT32 TempRamBase
,
58 IN VOID
*BootFirmwareVolume
62 Find and return Pei Core entry point.
64 It also find SEC and PEI Core file debug information. It will report them if
65 remote debug is enabled.
67 @param[in] BootFirmwareVolumePtr Point to the boot firmware volume.
68 @param[out] PeiCoreEntryPoint Point to the PEI core entry point.
73 FindAndReportEntryPoints (
74 IN EFI_FIRMWARE_VOLUME_HEADER
*BootFirmwareVolumePtr
,
75 OUT EFI_PEI_CORE_ENTRY_POINT
*PeiCoreEntryPoint
79 Autogenerated function that calls the library constructors for all of the module's
80 dependent libraries. This function must be called by the SEC Core once a stack has
86 ProcessLibraryConstructorList (