TianoCore EDK2 master
|
Go to the source code of this file.
Functions | |
EFI_STATUS | MemInfoCallbackMmio (IN MEMORY_MAP_ENTRY *MemoryMapEntry, IN VOID *Params) |
EFI_STATUS | FindToludCallback (IN MEMORY_MAP_ENTRY *MemoryMapEntry, IN VOID *Params) |
EFI_STATUS | MemInfoCallback (IN MEMORY_MAP_ENTRY *MemoryMapEntry, IN VOID *Params) |
EFI_STATUS | BuildHobFromBl (VOID) |
VOID | BuildGenericHob (VOID) |
EFI_STATUS EFIAPI | _ModuleEntryPoint (IN UINTN BootloaderParameter) |
Variables | |
STATIC UINT32 | mTopOfLowerUsableDram = 0 |
EFI_MEMORY_TYPE_INFORMATION | mDefaultMemoryTypeInformation [] |
Copyright (c) 2014 - 2021, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent
Definition in file UefiPayloadEntry.c.
EFI_STATUS EFIAPI _ModuleEntryPoint | ( | IN UINTN | BootloaderParameter | ) |
Entry point to the C language phase of UEFI payload.
[in] | BootloaderParameter | The starting address of bootloader parameter block. |
It | will not return if SUCCESS, and return error when passing bootloader parameter. |
Definition at line 396 of file UefiPayloadEntry.c.
VOID BuildGenericHob | ( | VOID | ) |
This function will build some generic HOBs that doesn't depend on information from bootloaders.
Definition at line 350 of file UefiPayloadEntry.c.
EFI_STATUS BuildHobFromBl | ( | VOID | ) |
It will build HOBs based on information from bootloaders.
EFI_SUCCESS | If it completed successfully. |
Others | If it failed to build required HOBs. |
Definition at line 232 of file UefiPayloadEntry.c.
EFI_STATUS FindToludCallback | ( | IN MEMORY_MAP_ENTRY * | MemoryMapEntry, |
IN VOID * | Params | ||
) |
Callback function to find TOLUD (Top of Lower Usable DRAM)
Estimate where TOLUD (Top of Lower Usable DRAM) resides. The exact position would require platform specific code.
MemoryMapEntry | Memory map entry info got from bootloader. |
Params | Not used for now. |
EFI_SUCCESS | Successfully updated mTopOfLowerUsableDram. |
Definition at line 115 of file UefiPayloadEntry.c.
EFI_STATUS MemInfoCallback | ( | IN MEMORY_MAP_ENTRY * | MemoryMapEntry, |
IN VOID * | Params | ||
) |
Callback function to build resource descriptor HOB
This function build a HOB based on the memory map entry info. Only add EFI_RESOURCE_SYSTEM_MEMORY.
MemoryMapEntry | Memory map entry info got from bootloader. |
Params | Not used for now. |
RETURN_SUCCESS | Successfully build a HOB. |
Definition at line 181 of file UefiPayloadEntry.c.
EFI_STATUS MemInfoCallbackMmio | ( | IN MEMORY_MAP_ENTRY * | MemoryMapEntry, |
IN VOID * | Params | ||
) |
Callback function to build resource descriptor HOB
This function build a HOB based on the memory map entry info. It creates only EFI_RESOURCE_MEMORY_MAPPED_IO and EFI_RESOURCE_MEMORY_RESERVED resources.
MemoryMapEntry | Memory map entry info got from bootloader. |
Params | A pointer to ACPI_BOARD_INFO. |
EFI_SUCCESS | Successfully build a HOB. |
EFI_INVALID_PARAMETER | Invalid parameter provided. |
Definition at line 36 of file UefiPayloadEntry.c.
EFI_MEMORY_TYPE_INFORMATION mDefaultMemoryTypeInformation[] |
Definition at line 13 of file UefiPayloadEntry.c.
STATIC UINT32 mTopOfLowerUsableDram = 0 |
Definition at line 11 of file UefiPayloadEntry.c.