TianoCore EDK2 master
|
#include <PiPei.h>
Go to the source code of this file.
Data Structures | |
struct | EFI_HOB_PLATFORM_INFO |
PlatformInitLib header file.
Copyright (c) 2021, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent
Definition in file PlatformInitLib.h.
VOID EFIAPI PlatformAddIoMemoryBaseSizeHob | ( | IN EFI_PHYSICAL_ADDRESS | MemoryBase, |
IN UINT64 | MemorySize | ||
) |
Definition at line 45 of file Platform.c.
VOID EFIAPI PlatformAddIoMemoryRangeHob | ( | IN EFI_PHYSICAL_ADDRESS | MemoryBase, |
IN EFI_PHYSICAL_ADDRESS | MemoryLimit | ||
) |
Definition at line 88 of file Platform.c.
VOID EFIAPI PlatformAddMemoryBaseSizeHob | ( | IN EFI_PHYSICAL_ADDRESS | MemoryBase, |
IN UINT64 | MemorySize | ||
) |
Definition at line 98 of file Platform.c.
VOID EFIAPI PlatformAddMemoryRangeHob | ( | IN EFI_PHYSICAL_ADDRESS | MemoryBase, |
IN EFI_PHYSICAL_ADDRESS | MemoryLimit | ||
) |
Definition at line 119 of file Platform.c.
VOID EFIAPI PlatformAddReservedMemoryBaseSizeHob | ( | IN EFI_PHYSICAL_ADDRESS | MemoryBase, |
IN UINT64 | MemorySize, | ||
IN BOOLEAN | Cacheable | ||
) |
Definition at line 63 of file Platform.c.
VOID EFIAPI PlatformAddressWidthInitialization | ( | IN OUT EFI_HOB_PLATFORM_INFO * | PlatformInfoHob | ) |
Initialize the PhysMemAddressWidth field in PlatformInfoHob based on guest RAM size.
Definition at line 1045 of file MemDetect.c.
VOID EFIAPI PlatformDebugDumpCmos | ( | VOID | ) |
VOID EFIAPI PlatformGetSystemMemorySizeBelow4gb | ( | IN EFI_HOB_PLATFORM_INFO * | PlatformInfoHob | ) |
Definition at line 441 of file MemDetect.c.
EFI_STATUS EFIAPI PlatformInitEmuVariableNvStore | ( | IN VOID * | EmuVariableNvStore | ) |
When OVMF is lauched with -bios parameter, UEFI variables will be partially emulated, and non-volatile variables may lose their contents after a reboot. This makes the secure boot feature not working.
This function is used to initialize the EmuVariableNvStore with the conent in PcdOvmfFlashNvStorageVariableBase.
[in] | EmuVariableNvStore | - A pointer to EmuVariableNvStore |
EFI_SUCCESS | - Successfully init the EmuVariableNvStore |
Others | - As the error code indicates |
Definition at line 933 of file Platform.c.
VOID EFIAPI PlatformMaxCpuCountInitialization | ( | IN OUT EFI_HOB_PLATFORM_INFO * | PlatformInfoHob | ) |
Fetch the boot CPU count and the possible CPU count from QEMU, and expose them to UefiCpuPkg modules.
Definition at line 560 of file Platform.c.
VOID EFIAPI PlatformMemMapInitialization | ( | IN OUT EFI_HOB_PLATFORM_INFO * | PlatformInfoHob | ) |
Definition at line 129 of file Platform.c.
VOID EFIAPI PlatformMiscInitialization | ( | IN EFI_HOB_PLATFORM_INFO * | PlatformInfoHob | ) |
Definition at line 316 of file Platform.c.
EFI_STATUS EFIAPI PlatformNoexecDxeInitialization | ( | IN OUT EFI_HOB_PLATFORM_INFO * | PlatformInfoHob | ) |
Fetch "opt/ovmf/PcdSetNxForStack" from QEMU
Setting | The pointer to the setting of "/opt/ovmf/PcdSetNxForStack". |
Definition at line 261 of file Platform.c.
VOID EFIAPI PlatformQemuInitializeRam | ( | IN EFI_HOB_PLATFORM_INFO * | PlatformInfoHob | ) |
Peform Memory Detection for QEMU / KVM
Definition at line 1231 of file MemDetect.c.
VOID EFIAPI PlatformQemuInitializeRamForS3 | ( | IN EFI_HOB_PLATFORM_INFO * | PlatformInfoHob | ) |
Definition at line 1358 of file MemDetect.c.
VOID EFIAPI PlatformQemuUc32BaseInitialization | ( | IN OUT EFI_HOB_PLATFORM_INFO * | PlatformInfoHob | ) |
Definition at line 53 of file MemDetect.c.
VOID *EFIAPI PlatformReserveEmuVariableNvStore | ( | VOID | ) |
Allocate storage for NV variables early on so it will be at a consistent address. Since VM memory is preserved across reboots, this allows the NV variable storage to survive a VM reboot.
VOID* | The pointer to the storage for NV Variables |
Definition at line 890 of file Platform.c.
VOID EFIAPI PlatformTdxPublishRamRegions | ( | VOID | ) |
In Tdx guest, the system memory is passed in TdHob by host VMM. So the major task of PlatformTdxPublishRamRegions is to walk thru the TdHob list and transfer the ResourceDescriptorHob and MemoryAllocationHob to the hobs in DXE phase.
MemoryAllocationHob should also be created for Mailbox and Ovmf work area.
Definition at line 146 of file IntelTdx.c.
Check the integrity of NvVarStore.
[in] | NvVarStoreBase | - A pointer to NvVarStore header |
[in] | NvVarStoreSize | - NvVarStore size |
TRUE | - The NvVarStore is valid. |
FALSE | - The NvVarStore is invalid. |
Definition at line 765 of file Platform.c.