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

Go to the source code of this file.

Functions

PEICORE_FUNCTION_POINTER ShadowPeiCore (IN PEI_CORE_INSTANCE *PrivateData)
 
VOID EFIAPI PeiCore (IN CONST EFI_SEC_PEI_HAND_OFF *SecCoreDataPtr, IN CONST EFI_PEI_PPI_DESCRIPTOR *PpiList, IN VOID *Data)
 

Variables

EFI_PEI_PPI_DESCRIPTOR mMemoryDiscoveredPpi
 
EFI_PEI_PPI_DESCRIPTOR mMigrateTempRamPpi
 
EFI_PEI_SERVICES gPs
 

Detailed Description

Pei Core Main Entry Point

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

Definition in file PeiMain.c.

Function Documentation

◆ PeiCore()

VOID EFIAPI PeiCore ( IN CONST EFI_SEC_PEI_HAND_OFF SecCoreDataPtr,
IN CONST EFI_PEI_PPI_DESCRIPTOR PpiList,
IN VOID *  Data 
)

This routine is invoked by main entry of PeiMain module during transition from SEC to PEI. After switching stack in the PEI core, it will restart with the old core data.

Parameters
SecCoreDataPtrPoints to a data structure containing information about the PEI core's operating environment, such as the size and location of temporary RAM, the stack location and the BFV location.
PpiListPoints to a list of one or more PPI descriptors to be installed initially by the PEI core. An empty PPI list consists of a single descriptor with the end-tag EFI_PEI_PPI_DESCRIPTOR_TERMINATE_LIST. As part of its initialization phase, the PEI Foundation will add these SEC-hosted PPIs to its PPI database such that both the PEI Foundation and any modules can leverage the associated service calls and/or code in these early PPIs
DataPointer to old core data that is used to initialize the core's data areas. If NULL, it is first PeiCore entering.

Definition at line 169 of file PeiMain.c.

◆ ShadowPeiCore()

PEICORE_FUNCTION_POINTER ShadowPeiCore ( IN PEI_CORE_INSTANCE PrivateData)

Shadow PeiCore module from flash to installed memory.

Parameters
PrivateDataPeiCore's private data structure
Returns
PeiCore function address after shadowing.

Definition at line 78 of file PeiMain.c.

Variable Documentation

◆ gPs

Pei service instance

Definition at line 25 of file PeiMain.c.

◆ mMemoryDiscoveredPpi

EFI_PEI_PPI_DESCRIPTOR mMemoryDiscoveredPpi
Initial value:
= {
(EFI_PEI_PPI_DESCRIPTOR_PPI | EFI_PEI_PPI_DESCRIPTOR_TERMINATE_LIST),
&gEfiPeiMemoryDiscoveredPpiGuid,
}
#define NULL
Definition: Base.h:319

Definition at line 11 of file PeiMain.c.

◆ mMigrateTempRamPpi

EFI_PEI_PPI_DESCRIPTOR mMigrateTempRamPpi
Initial value:
= {
(EFI_PEI_PPI_DESCRIPTOR_PPI | EFI_PEI_PPI_DESCRIPTOR_TERMINATE_LIST),
&gEdkiiPeiMigrateTempRamPpiGuid,
}

Definition at line 16 of file PeiMain.c.