TianoCore EDK2 master
Loading...
Searching...
No Matches
FindPeiCore.c File Reference
#include <PiPei.h>
#include "SecMain.h"

Go to the source code of this file.

Functions

EFI_STATUS EFIAPI FindImageBase (IN EFI_FIRMWARE_VOLUME_HEADER *FirmwareVolumePtr, IN EFI_FV_FILETYPE FileType, OUT EFI_PHYSICAL_ADDRESS *CoreImageBase)
 
VOID EFIAPI FindAndReportEntryPoints (IN EFI_FIRMWARE_VOLUME_HEADER *SecCoreFirmwareVolumePtr, IN EFI_FIRMWARE_VOLUME_HEADER *PeiCoreFirmwareVolumePtr, OUT EFI_PEI_CORE_ENTRY_POINT *PeiCoreEntryPoint)
 

Detailed Description

Locate the entry point for the PEI Core

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

Definition in file FindPeiCore.c.

Function Documentation

◆ FindAndReportEntryPoints()

VOID EFIAPI FindAndReportEntryPoints ( IN EFI_FIRMWARE_VOLUME_HEADER SecCoreFirmwareVolumePtr,
IN EFI_FIRMWARE_VOLUME_HEADER PeiCoreFirmwareVolumePtr,
OUT EFI_PEI_CORE_ENTRY_POINT PeiCoreEntryPoint 
)

Find and return Pei Core entry point.

It also find SEC and PEI Core file debug information. It will report them if remote debug is enabled.

Parameters
SecCoreFirmwareVolumePtrPoint to the firmware volume for finding SecCore.
PeiCoreFirmwareVolumePtrPoint to the firmware volume for finding PeiCore.
PeiCoreEntryPointThe entry point of the PEI core.

Definition at line 144 of file FindPeiCore.c.

◆ FindImageBase()

EFI_STATUS EFIAPI FindImageBase ( IN EFI_FIRMWARE_VOLUME_HEADER FirmwareVolumePtr,
IN EFI_FV_FILETYPE  FileType,
OUT EFI_PHYSICAL_ADDRESS CoreImageBase 
)

Find core image base.

Parameters
FirmwareVolumePtrPoint to the firmware volume for finding core image.
FileTypeThe FileType for searching, either SecCore or PeiCore.
CoreImageBaseThe base address of the core image.

Definition at line 23 of file FindPeiCore.c.