3 Copyright (c) 2014 - 2016, Intel Corporation. All rights reserved.<BR>
4 SPDX-License-Identifier: BSD-2-Clause-Patent
13 #include <Library/PcdLib.h>
14 #include <Library/BaseLib.h>
15 #include <Library/DebugLib.h>
16 #include <Library/SerialPortLib.h>
17 #include <Library/BaseMemoryLib.h>
18 #include <Library/FspCommonLib.h>
19 #include <Library/FspSecPlatformLib.h>
21 #define FSP_MCUD_SIGNATURE SIGNATURE_32 ('M', 'C', 'U', 'D')
22 #define FSP_PER0_SIGNATURE SIGNATURE_32 ('P', 'E', 'R', '0')
26 Calculate the FSP IDT gate descriptor.
28 @param[in] IdtEntryTemplate IDT gate descriptor template.
30 @return FSP specific IDT gate descriptor.
34 FspGetExceptionHandler(
35 IN UINT64 IdtEntryTemplate
40 Initialize the FSP global data region.
41 It needs to be done as soon as possible after the stack is setup.
43 @param[in,out] PeiFspData Pointer of the FSP global data.
44 @param[in] BootLoaderStack BootLoader stack.
45 @param[in] ApiIdx The index of the FSP API.
50 IN OUT FSP_GLOBAL_DATA
*PeiFspData
,
51 IN UINT32 BootLoaderStack
,
58 Adjust the FSP data pointers after the stack is migrated to memory.
60 @param[in] OffsetGap The offset gap between the old stack and the new stack.
70 This interface returns the base address of FSP binary.
72 @return FSP binary base address.
77 AsmGetFspBaseAddress (
82 This interface gets FspInfoHeader pointer
84 @return FSP binary base address.