TianoCore EDK2 master
Loading...
Searching...
No Matches
CapsuleOnDiskLoadPei.c File Reference

Go to the source code of this file.

Functions

EFI_STATUS EFIAPI LoadCapsuleOnDisk (IN EFI_PEI_SERVICES **PeiServices, IN EDKII_PEI_CAPSULE_ON_DISK_PPI *This)
 
EFI_STATUS EFIAPI InitializeCapsuleOnDiskLoad (IN EFI_PEI_FILE_HANDLE FileHandle, IN CONST EFI_PEI_SERVICES **PeiServices)
 

Detailed Description

Recovery module.

Caution: This module requires additional review when modified. This module will have external input - Capsule-on-Disk Temp Relocation image. This external input must be validated carefully to avoid security issue like buffer overflow, integer overflow.

RetrieveRelocatedCapsule() will receive untrusted input and do basic validation.

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

Definition in file CapsuleOnDiskLoadPei.c.

Function Documentation

◆ InitializeCapsuleOnDiskLoad()

EFI_STATUS EFIAPI InitializeCapsuleOnDiskLoad ( IN EFI_PEI_FILE_HANDLE  FileHandle,
IN CONST EFI_PEI_SERVICES **  PeiServices 
)

Recovery module entrypoint

Parameters
[in]FileHandleHandle of the file being invoked.
[in]PeiServicesDescribes the list of possible PEI Services.
Returns
EFI_SUCCESS Recovery module is initialized.

Definition at line 271 of file CapsuleOnDiskLoadPei.c.

◆ LoadCapsuleOnDisk()

EFI_STATUS EFIAPI LoadCapsuleOnDisk ( IN EFI_PEI_SERVICES **  PeiServices,
IN EDKII_PEI_CAPSULE_ON_DISK_PPI This 
)

Loads a DXE capsule from some media into memory and updates the HOB table with the DXE firmware volume information.

Parameters
[in]PeiServicesGeneral-purpose services that are available to every PEIM.
[in]ThisIndicates the EFI_PEI_RECOVERY_MODULE_PPI instance.
Return values
EFI_SUCCESSThe capsule was loaded correctly.
EFI_DEVICE_ERRORA device error occurred.
EFI_NOT_FOUNDA recovery DXE capsule cannot be found.

Definition at line 339 of file CapsuleOnDiskLoadPei.c.