]>
Commit | Line | Data |
---|---|---|
a33a2f62 JY |
1 | /** @file\r |
2 | Master header file for SecCore.\r | |
3 | \r | |
4 | Copyright (c) 2014, Intel Corporation. All rights reserved.<BR>\r | |
19486360 | 5 | SPDX-License-Identifier: BSD-2-Clause-Patent\r |
a33a2f62 JY |
6 | \r |
7 | **/\r | |
8 | \r | |
9 | #ifndef _SEC_CORE_H_\r | |
10 | #define _SEC_CORE_H_\r | |
11 | \r | |
12 | \r | |
13 | #include <PiPei.h>\r | |
14 | \r | |
15 | #include <Ppi/TopOfTemporaryRam.h>\r | |
16 | \r | |
17 | #include <Library/BaseLib.h>\r | |
18 | #include <Library/DebugLib.h>\r | |
19 | #include <Library/PcdLib.h>\r | |
20 | #include <Library/BaseMemoryLib.h>\r | |
21 | #include <Library/FspPlatformSecLib.h>\r | |
22 | #include <Library/FspPlatformInfoLib.h>\r | |
23 | #include <Library/UefiCpuLib.h>\r | |
24 | #include <Library/PeCoffGetEntryPointLib.h>\r | |
25 | #include <Library/PeCoffExtraActionLib.h>\r | |
26 | #include <Library/DebugAgentLib.h>\r | |
27 | \r | |
28 | #include <FspApi.h>\r | |
29 | #include <FspInfoHeader.h>\r | |
30 | \r | |
31 | #define SEC_IDT_ENTRY_COUNT 34\r | |
32 | \r | |
33 | typedef struct _SEC_IDT_TABLE {\r | |
34 | //\r | |
35 | // Reserved 8 bytes preceding IDT to store EFI_PEI_SERVICES**, since IDT base\r | |
36 | // address should be 8-byte alignment.\r | |
37 | // Note: For IA32, only the 4 bytes immediately preceding IDT is used to store\r | |
38 | // EFI_PEI_SERVICES**\r | |
39 | //\r | |
40 | UINT64 PeiService;\r | |
41 | UINT64 IdtTable[SEC_IDT_ENTRY_COUNT];\r | |
42 | } SEC_IDT_TABLE;\r | |
43 | \r | |
44 | /**\r | |
45 | Entry point to the C language phase of SEC. After the SEC assembly\r | |
46 | code has initialized some temporary memory and set up the stack,\r | |
47 | the control is transferred to this function.\r | |
48 | \r | |
49 | @param[in] SizeOfRam Size of the temporary memory available for use.\r | |
b9ca25cb | 50 | @param[in] TempRamBase Base address of temporary ram\r |
a33a2f62 JY |
51 | @param[in] BootFirmwareVolume Base address of the Boot Firmware Volume.\r |
52 | **/\r | |
53 | VOID\r | |
54 | EFIAPI\r | |
55 | SecStartup (\r | |
56 | IN UINT32 SizeOfRam,\r | |
57 | IN UINT32 TempRamBase,\r | |
58 | IN VOID *BootFirmwareVolume\r | |
59 | );\r | |
60 | \r | |
61 | /**\r | |
62 | Find and return Pei Core entry point.\r | |
63 | \r | |
b9ca25cb | 64 | It also find SEC and PEI Core file debug information. It will report them if\r |
a33a2f62 JY |
65 | remote debug is enabled.\r |
66 | \r | |
67 | @param[in] BootFirmwareVolumePtr Point to the boot firmware volume.\r | |
68 | @param[out] PeiCoreEntryPoint Point to the PEI core entry point.\r | |
69 | \r | |
70 | **/\r | |
71 | VOID\r | |
72 | EFIAPI\r | |
73 | FindAndReportEntryPoints (\r | |
74 | IN EFI_FIRMWARE_VOLUME_HEADER *BootFirmwareVolumePtr,\r | |
75 | OUT EFI_PEI_CORE_ENTRY_POINT *PeiCoreEntryPoint\r | |
76 | );\r | |
77 | \r | |
78 | /**\r | |
79 | Autogenerated function that calls the library constructors for all of the module's\r | |
80 | dependent libraries. This function must be called by the SEC Core once a stack has\r | |
81 | been established.\r | |
82 | \r | |
83 | **/\r | |
84 | VOID\r | |
85 | EFIAPI\r | |
86 | ProcessLibraryConstructorList (\r | |
87 | VOID\r | |
88 | );\r | |
89 | \r | |
90 | #endif\r |