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

Go to the source code of this file.

Macros

#define GET_GPAW_INIT_STATE(INFO)   ((UINT8) ((INFO) & 0x3f))
 

Functions

EFI_STATUS EFIAPI InitializePlatform (EFI_HOB_PLATFORM_INFO *PlatformInfoHob)
 
VOID EFIAPI PeilessStartup (IN VOID *Context)
 

Variables

EFI_MEMORY_TYPE_INFORMATION mDefaultMemoryTypeInformation []
 

Detailed Description

Copyright (c) 2021, Intel Corporation. All rights reserved.

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

Definition in file PeilessStartup.c.

Macro Definition Documentation

◆ GET_GPAW_INIT_STATE

#define GET_GPAW_INIT_STATE (   INFO)    ((UINT8) ((INFO) & 0x3f))

Definition at line 26 of file PeilessStartup.c.

Function Documentation

◆ InitializePlatform()

EFI_STATUS EFIAPI InitializePlatform ( EFI_HOB_PLATFORM_INFO PlatformInfoHob)

Definition at line 41 of file PeilessStartup.c.

◆ PeilessStartup()

VOID EFIAPI PeilessStartup ( IN VOID *  Context)

This function brings up the Tdx guest from SEC phase to DXE phase. PEI phase is skipped because most of the components in PEI phase is not needed for Tdx guest, for example, MP Services, TPM etc. In this way, the attack surfaces are reduced as much as possible.

Parameters
ContextThe pointer to the SecCoreData
Returns
VOID This function never returns

Definition at line 130 of file PeilessStartup.c.

Variable Documentation

◆ mDefaultMemoryTypeInformation

EFI_MEMORY_TYPE_INFORMATION mDefaultMemoryTypeInformation[]
Initial value:
= {
{ EfiACPIMemoryNVS, 0x004 },
{ EfiBootServicesCode, 0x180 },
{ EfiBootServicesData, 0xF00 },
{ EfiMaxMemoryType, 0x000 }
}
@ EfiBootServicesData
@ EfiReservedMemoryType
@ EfiBootServicesCode
@ EfiACPIMemoryNVS
@ EfiACPIReclaimMemory
@ EfiRuntimeServicesCode
@ EfiRuntimeServicesData

Definition at line 28 of file PeilessStartup.c.