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

Go to the source code of this file.

Functions

VOID MemMapInitialization (IN OUT EFI_HOB_PLATFORM_INFO *PlatformInfoHob)
 
STATIC VOID NoexecDxeInitialization (IN OUT EFI_HOB_PLATFORM_INFO *PlatformInfoHob)
 
VOID MicrovmInitialization (VOID)
 
VOID MiscInitializationForMicrovm (IN EFI_HOB_PLATFORM_INFO *PlatformInfoHob)
 
VOID MiscInitialization (IN EFI_HOB_PLATFORM_INFO *PlatformInfoHob)
 
VOID BootModeInitialization (IN OUT EFI_HOB_PLATFORM_INFO *PlatformInfoHob)
 
VOID ReserveEmuVariableNvStore ()
 
STATIC VOID Q35BoardVerification (IN EFI_HOB_PLATFORM_INFO *PlatformInfoHob)
 
VOID MaxCpuCountInitialization (IN OUT EFI_HOB_PLATFORM_INFO *PlatformInfoHob)
 
EFI_HOB_PLATFORM_INFOBuildPlatformInfoHob (VOID)
 Builds PlatformInfo Hob.
 
EFI_STATUS EFIAPI InitializePlatform (IN EFI_PEI_FILE_HANDLE FileHandle, IN CONST EFI_PEI_SERVICES **PeiServices)
 

Variables

EFI_PEI_PPI_DESCRIPTOR mPpiBootMode []
 

Detailed Description

Platform PEI driver

Copyright (c) 2006 - 2016, Intel Corporation. All rights reserved.
Copyright (c) 2011, Andrei Warkentin andre.nosp@m.iw@m.nosp@m.otoro.nosp@m.la.c.nosp@m.om

SPDX-License-Identifier: BSD-2-Clause-Patent

Definition in file Platform.c.

Function Documentation

◆ BootModeInitialization()

VOID BootModeInitialization ( IN OUT EFI_HOB_PLATFORM_INFO PlatformInfoHob)

Definition at line 198 of file Platform.c.

◆ BuildPlatformInfoHob()

EFI_HOB_PLATFORM_INFO * BuildPlatformInfoHob ( VOID  )

Builds PlatformInfo Hob.

Definition at line 280 of file Platform.c.

◆ InitializePlatform()

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

Perform Platform PEI initialization.

Parameters
FileHandleHandle of the file being invoked.
PeiServicesDescribes the list of possible PEI Services.
Returns
EFI_SUCCESS The PEIM initialized successfully.

Definition at line 304 of file Platform.c.

◆ MaxCpuCountInitialization()

VOID MaxCpuCountInitialization ( 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. Set the MaxCpuCount field in PlatformInfoHob.

Definition at line 262 of file Platform.c.

◆ MemMapInitialization()

VOID MemMapInitialization ( IN OUT EFI_HOB_PLATFORM_INFO PlatformInfoHob)

Definition at line 55 of file Platform.c.

◆ MicrovmInitialization()

VOID MicrovmInitialization ( VOID  )

Definition at line 106 of file Platform.c.

◆ MiscInitialization()

VOID MiscInitialization ( IN EFI_HOB_PLATFORM_INFO PlatformInfoHob)

Definition at line 185 of file Platform.c.

◆ MiscInitializationForMicrovm()

VOID MiscInitializationForMicrovm ( IN EFI_HOB_PLATFORM_INFO PlatformInfoHob)

Definition at line 155 of file Platform.c.

◆ NoexecDxeInitialization()

STATIC VOID NoexecDxeInitialization ( IN OUT EFI_HOB_PLATFORM_INFO PlatformInfoHob)

Definition at line 80 of file Platform.c.

◆ Q35BoardVerification()

STATIC VOID Q35BoardVerification ( IN EFI_HOB_PLATFORM_INFO PlatformInfoHob)

Definition at line 237 of file Platform.c.

◆ ReserveEmuVariableNvStore()

VOID ReserveEmuVariableNvStore ( )

Definition at line 218 of file Platform.c.

Variable Documentation

◆ mPpiBootMode

EFI_PEI_PPI_DESCRIPTOR mPpiBootMode[]
Initial value:
= {
{
EFI_PEI_PPI_DESCRIPTOR_PPI | EFI_PEI_PPI_DESCRIPTOR_TERMINATE_LIST,
&gEfiPeiMasterBootModePpiGuid,
}
}
#define NULL
Definition: Base.h:319

Definition at line 46 of file Platform.c.