TianoCore EDK2 master
Loading...
Searching...
No Matches
SecFsp.c File Reference
#include "SecFsp.h"

Go to the source code of this file.

Functions

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

Detailed Description

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

Definition in file SecFsp.c.

Function Documentation

◆ 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.

◆ SecGetPlatformData()

VOID EFIAPI SecGetPlatformData ( IN OUT FSP_GLOBAL_DATA FspData)

This interface fills platform specific data.

Parameters
[in,out]FspDataPointer to the FSP global data.

Definition at line 49 of file SecFsp.c.