TianoCore EDK2 master
|
#include "UefiPayloadEntry.h"
#include <Library/FdtLib.h>
#include <Guid/UniversalPayloadBase.h>
#include <Guid/MemoryTypeInformation.h>
#include <Library/FdtParserLib.h>
#include <Library/HobParserLib.h>
Go to the source code of this file.
Macros | |
#define | MEMORY_ATTRIBUTE_MASK |
#define | TESTED_MEMORY_ATTRIBUTES |
Functions | |
VOID | PrintHob (IN CONST VOID *HobStart) |
VOID EFIAPI | ProcessLibraryConstructorList (VOID) |
UINTN EFIAPI | AsciiStrSpn (IN CHAR8 *String, IN CHAR8 *CharSet) |
CHAR8 *EFIAPI | AsciiStrBrk (IN CHAR8 *String, IN CHAR8 *CharSet) |
CHAR8 *EFIAPI | AsciiStrTokenLine (IN CHAR8 *String OPTIONAL, IN CHAR8 *CharSet) |
EFI_STATUS | FixUpPcdDatabase (IN EFI_FIRMWARE_VOLUME_HEADER *DxeFv) |
EFI_STATUS | BuildFitLoadablesFvHob (OUT EFI_FIRMWARE_VOLUME_HEADER **DxeFv) |
VOID | CreatNewHobForHoblist (IN UINTN BootloaderParameter) |
EFI_STATUS | FitBuildHobs (IN UINTN NewFdtBase, OUT EFI_FIRMWARE_VOLUME_HEADER **DxeFv) |
EFI_STATUS EFIAPI | FitUplEntryPoint (IN UINTN BootloaderParameter) |
Variables | |
GLOBAL_REMOVE_IF_UNREFERENCED EFI_MEMORY_TYPE_INFORMATION | mDefaultMemoryTypeInformation [] |
VOID * | mHobList |
CHAR8 * | mLineBuffer = NULL |
Copyright (c) 2023, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent
Definition in file FitUniversalPayloadEntry.c.
#define MEMORY_ATTRIBUTE_MASK |
Definition at line 13 of file FitUniversalPayloadEntry.c.
#define TESTED_MEMORY_ATTRIBUTES |
Definition at line 25 of file FitUniversalPayloadEntry.c.
Searches a string for the first occurrence of a character contained in a specified buffer.
String | Point to the string where to find the substring. |
CharSet | Point to the string to be found. |
Definition at line 100 of file FitUniversalPayloadEntry.c.
Find the first substring.
String | Point to the string where to find the substring. |
CharSet | Point to the string to be found. |
Definition at line 64 of file FitUniversalPayloadEntry.c.
Find the next token after one or more specified characters.
String | Point to the string where to find the substring. |
CharSet | Point to the string to be found. |
Definition at line 126 of file FitUniversalPayloadEntry.c.
EFI_STATUS BuildFitLoadablesFvHob | ( | OUT EFI_FIRMWARE_VOLUME_HEADER ** | DxeFv | ) |
It will build Fv HOBs based on information from bootloaders.
[out] | DxeFv | The pointer to the DXE FV in memory. |
EFI_SUCCESS | If it completed successfully. |
EFI_NOT_FOUND | If it failed to find node in fit image. |
Others | If it failed to build required HOBs. |
Definition at line 220 of file FitUniversalPayloadEntry.c.
Create new HOB for new HOB list
[in] | BootloaderParameter | The HOB to be added into the HOB list. |
Definition at line 319 of file FitUniversalPayloadEntry.c.
EFI_STATUS FitBuildHobs | ( | IN UINTN | NewFdtBase, |
OUT EFI_FIRMWARE_VOLUME_HEADER ** | DxeFv | ||
) |
It will build HOBs based on information from bootloaders.
[in] | NewFdtBase | The pointer to New FdtBase. |
[out] | DxeFv | The pointer to the DXE FV in memory. |
EFI_SUCCESS | If it completed successfully. |
Others | If it failed to build required HOBs. |
Definition at line 417 of file FitUniversalPayloadEntry.c.
EFI_STATUS EFIAPI FitUplEntryPoint | ( | IN UINTN | BootloaderParameter | ) |
Entry point to the C language phase of UEFI payload.
[in] | BootloaderParameter | The starting address of FDT . |
It | will not return if SUCCESS, and return error when passing bootloader parameter. |
Definition at line 495 of file FitUniversalPayloadEntry.c.
EFI_STATUS FixUpPcdDatabase | ( | IN EFI_FIRMWARE_VOLUME_HEADER * | DxeFv | ) |
Some bootloader may pass a pcd database, and UPL also contain a PCD database. Dxe PCD driver has the assumption that the two PCD database can be catenated and the local token number should be successive. This function will fix up the UPL PCD database to meet that assumption.
[in] | DxeFv | The FV where to find the Universal PCD database. |
EFI_SUCCESS | If it completed successfully. |
other | Failed to fix up. |
Definition at line 165 of file FitUniversalPayloadEntry.c.
Print all HOBs info from the HOB list.
Print all HOBs info from the HOB list.
[in] | HobStart | A pointer to the HOB list |
Definition at line 362 of file PrintHob.c.
GLOBAL_REMOVE_IF_UNREFERENCED EFI_MEMORY_TYPE_INFORMATION mDefaultMemoryTypeInformation[] |
Definition at line 29 of file FitUniversalPayloadEntry.c.
CHAR8* mLineBuffer = NULL |
Definition at line 40 of file FitUniversalPayloadEntry.c.