TianoCore EDK2 master
|
#include "UefiPayloadEntry.h"
Go to the source code of this file.
Functions | |
VOID * | AllocateCodePages (IN UINTN Pages) |
EFI_STATUS | LoadPeCoffImage (IN VOID *PeCoffImage, OUT EFI_PHYSICAL_ADDRESS *ImageAddress, OUT UINT64 *ImageSize, OUT EFI_PHYSICAL_ADDRESS *EntryPoint) |
EFI_STATUS | FvFindFileByTypeGuid (IN EFI_FIRMWARE_VOLUME_HEADER *FvHeader, IN EFI_FV_FILETYPE FileType, IN EFI_GUID *Guid OPTIONAL, OUT EFI_FFS_FILE_HEADER **FileHeader) |
EFI_STATUS | FileFindSection (IN EFI_FFS_FILE_HEADER *FileHeader, IN EFI_SECTION_TYPE SectionType, OUT VOID **SectionData) |
EFI_STATUS | LoadDxeCore (OUT PHYSICAL_ADDRESS *DxeCoreEntryPoint) |
EFI_STATUS | UniversalLoadDxeCore (IN EFI_FIRMWARE_VOLUME_HEADER *DxeFv, OUT PHYSICAL_ADDRESS *DxeCoreEntryPoint) |
Copyright (c) 2020, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent
Definition in file LoadDxeCore.c.
Allocate pages for code.
[in] | Pages | Number of pages to be allocated. |
Definition at line 19 of file LoadDxeCore.c.
EFI_STATUS FileFindSection | ( | IN EFI_FFS_FILE_HEADER * | FileHeader, |
IN EFI_SECTION_TYPE | SectionType, | ||
OUT VOID ** | SectionData | ||
) |
This function searchs a given section type within a valid FFS file.
FileHeader | A pointer to the file header that contains the set of sections to be searched. |
SectionType | The value of the section type to search. |
SectionData | A pointer to the discovered section, if successful. |
EFI_SUCCESS | The section was found. |
EFI_NOT_FOUND | The section was not found. |
Definition at line 201 of file LoadDxeCore.c.
EFI_STATUS FvFindFileByTypeGuid | ( | IN EFI_FIRMWARE_VOLUME_HEADER * | FvHeader, |
IN EFI_FV_FILETYPE | FileType, | ||
IN EFI_GUID *Guid | OPTIONAL, | ||
OUT EFI_FFS_FILE_HEADER ** | FileHeader | ||
) |
This function searchs a given file type with a given Guid within a valid FV. If input Guid is NULL, will locate the first section having the given file type
FvHeader | A pointer to firmware volume header that contains the set of files to be searched. |
FileType | File type to be searched. |
Guid | Will ignore if it is NULL. |
FileHeader | A pointer to the discovered file, if successful. |
EFI_SUCCESS | Successfully found FileType |
EFI_NOT_FOUND | File type can't be found. |
Definition at line 131 of file LoadDxeCore.c.
EFI_STATUS LoadDxeCore | ( | OUT PHYSICAL_ADDRESS * | DxeCoreEntryPoint | ) |
Find DXE core from FV and build DXE core HOBs.
[out] | DxeCoreEntryPoint | DXE core entry point |
EFI_SUCCESS | If it completed successfully. |
EFI_NOT_FOUND | If it failed to load DXE FV. |
Definition at line 259 of file LoadDxeCore.c.
EFI_STATUS LoadPeCoffImage | ( | IN VOID * | PeCoffImage, |
OUT EFI_PHYSICAL_ADDRESS * | ImageAddress, | ||
OUT UINT64 * | ImageSize, | ||
OUT EFI_PHYSICAL_ADDRESS * | EntryPoint | ||
) |
Loads and relocates a PE/COFF image
[in] | PeCoffImage | Point to a Pe/Coff image. |
[out] | ImageAddress | The image memory address after relocation. |
[out] | ImageSize | The image size. |
[out] | EntryPoint | The image entry point. |
Definition at line 60 of file LoadDxeCore.c.
EFI_STATUS UniversalLoadDxeCore | ( | IN EFI_FIRMWARE_VOLUME_HEADER * | DxeFv, |
OUT PHYSICAL_ADDRESS * | DxeCoreEntryPoint | ||
) |
Find DXE core from FV and build DXE core HOBs.
[in] | DxeFv | The FV where to find the DXE core. |
[out] | DxeCoreEntryPoint | DXE core entry point |
EFI_SUCCESS | If it completed successfully. |
EFI_NOT_FOUND | If it failed to load DXE FV. |
Definition at line 327 of file LoadDxeCore.c.