TianoCore EDK2 master
Loading...
Searching...
No Matches
SecFsp.h File Reference

Go to the source code of this file.

Macros

#define FSP_MCUD_SIGNATURE   SIGNATURE_32 ('M', 'C', 'U', 'D')
 
#define FSP_PER0_SIGNATURE   SIGNATURE_32 ('P', 'E', 'R', '0')
 

Functions

IA32_IDT_GATE_DESCRIPTOR FspGetExceptionHandler (IN UINT64 IdtEntryTemplate)
 
VOID FspGlobalDataInit (IN OUT FSP_GLOBAL_DATA *PeiFspData, IN UINTN BootLoaderStack, IN UINT8 ApiIdx)
 
VOID FspDataPointerFixUp (IN UINTN OffsetGap)
 
UINTN EFIAPI AsmGetFspBaseAddress (VOID)
 
UINTN EFIAPI AsmGetFspInfoHeader (VOID)
 

Detailed Description

Copyright (c) 2014 - 2022, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent

Definition in file SecFsp.h.

Macro Definition Documentation

◆ FSP_MCUD_SIGNATURE

#define FSP_MCUD_SIGNATURE   SIGNATURE_32 ('M', 'C', 'U', 'D')

Definition at line 22 of file SecFsp.h.

◆ FSP_PER0_SIGNATURE

#define FSP_PER0_SIGNATURE   SIGNATURE_32 ('P', 'E', 'R', '0')

Definition at line 23 of file SecFsp.h.

Function Documentation

◆ AsmGetFspBaseAddress()

UINTN EFIAPI AsmGetFspBaseAddress ( VOID  )

This interface returns the base address of FSP binary.

Returns
FSP binary base address.

◆ AsmGetFspInfoHeader()

UINTN EFIAPI AsmGetFspInfoHeader ( VOID  )

This interface gets FspInfoHeader pointer

Returns
FSP info header.

◆ FspDataPointerFixUp()

VOID FspDataPointerFixUp ( IN UINTN  OffsetGap)

Adjust the FSP data pointers after the stack is migrated to memory.

Parameters
[in]OffsetGapThe offset gap between the old stack and the new stack.

Definition at line 232 of file SecFsp.c.

◆ FspGetExceptionHandler()

IA32_IDT_GATE_DESCRIPTOR FspGetExceptionHandler ( IN UINT64  IdtEntryTemplate)

Calculate the FSP IDT gate descriptor.

Parameters
[in]IdtEntryTemplateIDT gate descriptor template.
Returns
FSP specific IDT gate descriptor.

Definition at line 20 of file SecFsp.c.

◆ FspGlobalDataInit()

VOID FspGlobalDataInit ( IN OUT FSP_GLOBAL_DATA PeiFspData,
IN UINTN  BootLoaderStack,
IN UINT8  ApiIdx 
)

Initialize the FSP global data region. It needs to be done as soon as possible after the stack is setup.

Parameters
[in,out]PeiFspDataPointer of the FSP global data.
[in]BootLoaderStackBootLoader stack.
[in]ApiIdxThe index of the FSP API.

Definition at line 125 of file SecFsp.c.