2 Master header file for SecCore.
4 Copyright (c) 2014, Intel Corporation. All rights reserved.<BR>
5 This program and the accompanying materials
6 are licensed and made available under the terms and conditions of the BSD License
7 which accompanies this distribution. The full text of the license may be found at
8 http://opensource.org/licenses/bsd-license.php.
10 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
11 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
21 #include <Ppi/TopOfTemporaryRam.h>
23 #include <Library/BaseLib.h>
24 #include <Library/DebugLib.h>
25 #include <Library/PcdLib.h>
26 #include <Library/BaseMemoryLib.h>
27 #include <Library/FspPlatformSecLib.h>
28 #include <Library/FspPlatformInfoLib.h>
29 #include <Library/UefiCpuLib.h>
30 #include <Library/PeCoffGetEntryPointLib.h>
31 #include <Library/PeCoffExtraActionLib.h>
32 #include <Library/DebugAgentLib.h>
35 #include <FspInfoHeader.h>
37 #define SEC_IDT_ENTRY_COUNT 34
39 typedef struct _SEC_IDT_TABLE
{
41 // Reserved 8 bytes preceding IDT to store EFI_PEI_SERVICES**, since IDT base
42 // address should be 8-byte alignment.
43 // Note: For IA32, only the 4 bytes immediately preceding IDT is used to store
47 UINT64 IdtTable
[SEC_IDT_ENTRY_COUNT
];
51 Entry point to the C language phase of SEC. After the SEC assembly
52 code has initialized some temporary memory and set up the stack,
53 the control is transferred to this function.
55 @param[in] SizeOfRam Size of the temporary memory available for use.
56 @param[in] TempRamBase Base address of tempory ram
57 @param[in] BootFirmwareVolume Base address of the Boot Firmware Volume.
63 IN UINT32 TempRamBase
,
64 IN VOID
*BootFirmwareVolume
68 Find and return Pei Core entry point.
70 It also find SEC and PEI Core file debug inforamtion. It will report them if
71 remote debug is enabled.
73 @param[in] BootFirmwareVolumePtr Point to the boot firmware volume.
74 @param[out] PeiCoreEntryPoint Point to the PEI core entry point.
79 FindAndReportEntryPoints (
80 IN EFI_FIRMWARE_VOLUME_HEADER
*BootFirmwareVolumePtr
,
81 OUT EFI_PEI_CORE_ENTRY_POINT
*PeiCoreEntryPoint
85 Autogenerated function that calls the library constructors for all of the module's
86 dependent libraries. This function must be called by the SEC Core once a stack has
92 ProcessLibraryConstructorList (