data_type large_stringclasses 3
values | source large_stringclasses 29
values | code large_stringlengths 98 49.4M | filepath large_stringlengths 5 161 ⌀ | message large_stringclasses 234
values | commit large_stringclasses 234
values | subject large_stringclasses 418
values | critique large_stringlengths 101 1.26M ⌀ | metadata dict |
|---|---|---|---|---|---|---|---|---|
source | edk2 | /** @file
Endoresment Seed generation part of PlatformTpmLib to use TpmLib.
To see the plat_XXX interface in TPM reference library, see:
- https://github.com/TrustedComputingGroup/TPM/tree/main/TPMCmd/Platform/src
Copyright (c) 2025, Arm Limited. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Cla... | TcgTpmPkg/Library/PlatformTpmNullLib/ExtraData.c | null | null | null | null | null |
source | edk2 | /** @file
This module provides the platform specific entry and fail processing. The
PlatformTpmLibFail() function is used to call to ExecuteCommand() in the TPM code.
This function does whatever processing is necessary to set up the platform
in anticipation of the call to the TPM including settup for error proc... | TcgTpmPkg/Library/PlatformTpmNullLib/Failure.c | null | null | null | null | null |
source | edk2 | /** @file
Platform specific Initialisation for PlatformTpmLib.
Copyright (c) 2025, Arm Limited. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#include <Library/BaseLib.h>
#include <Library/PlatformTpmLib.h>
/**
This function is called in TpmLibConstructor() to
initialise Platfor... | TcgTpmPkg/Library/PlatformTpmNullLib/Init.c | null | null | null | null | null |
source | edk2 | /** @file
Tpm Nv Storage part of PlatformTpmLib to use TpmLib.
To see the plat_XXX interfaces in TPM reference library, see:
- https://github.com/TrustedComputingGroup/TPM/tree/main/TPMCmd/Platform/src
Copyright (c) 2025, Arm Limited. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
... | TcgTpmPkg/Library/PlatformTpmNullLib/NVMem.c | null | null | null | null | null |
source | edk2 | /** @file
In some implementations of the TPM, the hardware can provide a secret
value to the TPM. This secret value is statistically unique to the
instance of the TPM. Typical uses of this value are to provide
personalization to the random number generation and as a shared secret
between the TPM and the manuf... | TcgTpmPkg/Library/PlatformTpmNullLib/Unique.c | null | null | null | null | null |
source | edk2 | /** @file
Provide vendor-specific version and identifiers to core TPM library
for return in capabilities. These may not be compile time constants and
therefore are provided by platform callbacks.
These platform functions are expected to always be available,
even in failure mode.
Copyright (c) 2025, Arm Lim... | TcgTpmPkg/Library/PlatformTpmNullLib/VendorInfo.c | null | null | null | null | null |
source | edk2 | /** @file
TpmLib to call Tcg TPM reference code to implement core fTPM function.
Here is a sample infrastructure using TpmLib in AARCH64:
Normal world | Secure World
-----------------------------|------------------------------
|
+--------------... | TcgTpmPkg/Library/TpmLib/TpmLib.c | null | null | null | null | null |
source | edk2 | /** @file
This file specifies additional compile options to build TPM reference code.
For useful build option, see:
- https://github.com/TrustedComputingGroup/TPM/blob/main/docs/architecture/Tpm.Crypto.Libraries.md
Copyright (c) 2025, Arm Limited. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Cl... | TcgTpmPkg/Library/TpmLib/TpmLibCompileOptions.h | null | null | null | null | null |
source | edk2 | /** @file
This file connects Tcg TPM reference code's platform specific functions
to correspond functions in PlatformTpmLib.
about each "_plat__XXX" interfaces in TPM reference libraries, see:
- https://github.com/TrustedComputingGroup/TPM/blob/main/TPMCmd/Platform/src
When TPM reference library is build, ... | TcgTpmPkg/Library/TpmLib/TpmPlatformFunctions.c | null | null | null | null | null |
source | edk2 | /** @file
This file connects TCG TPM openssl usage to EDKII's crypto library.
The original reference was taken from
- https://github.com/TrustedComputingGroup/TPM/blob/main/TPMCmd/tpm/cryptolibs/Ossl/include/Ossl/BnToOsslMath.h
and has been modified to use the EDK2 crypto library interfaces.
**/
#pragma on... | TcgTpmPkg/Library/TpmLib/Include/Ossl/BnToOsslMath.h | null | null | null | null | null |
source | edk2 | /** @file
This file connects TCG TPM openssl usage to EDKII's crypto library.
The original reference was taken from
- https://github.com/TrustedComputingGroup/TPM/blob/main/TPMCmd/tpm/cryptolibs/Ossl/include/Ossl/TpmToOsslHash.h
and has been modified to use the EDK2 crypto library interfaces.
**/
#pragma o... | TcgTpmPkg/Library/TpmLib/Include/Ossl/TpmToOsslHash.h | null | null | null | null | null |
source | edk2 | /** @file
This file connects TCG TPM openssl usage to EDKII's crypto library.
The original reference was taken from
- https://github.com/TrustedComputingGroup/TPM/blob/main/TPMCmd/tpm/cryptolibs/Ossl/include/Ossl/TpmToOsslSym.h
and has been modified to use the EDK2 crypto library interfaces.
**/
#pragma on... | TcgTpmPkg/Library/TpmLib/Include/Ossl/TpmToOsslSym.h | null | null | null | null | null |
source | edk2 | /** @file
This file is copied from
- https://github.com/TrustedComputingGroup/TPM/blob/main/TPMCmd/TpmConfiguration/TpmConfiguration/TpmBuildSwitches.h
to set build option for TPM reference library.
All option is the same to original file except SIMULATION option.
This is turned off to disable building of ... | TcgTpmPkg/Library/TpmLib/Include/TpmConfiguration/TpmBuildSwitches.h | null | null | null | null | null |
source | edk2 | /** @file
This file is copied from
- https://github.com/TrustedComputingGroup/TPM/blob/main/TPMCmd/TpmConfiguration/TpmConfiguration/TpmProfile_Common.h
to set build option for TPM reference library.
All option is the same to original file except ALG_SHA512.
it is enabled to support ALG_SHA512 algorithm
*... | TcgTpmPkg/Library/TpmLib/Include/TpmConfiguration/TpmProfile_Common.h | null | null | null | null | null |
source | edk2 | /** @file
This file is copied from
- https://github.com/TrustedComputingGroup/TPM/blob/main/TPMCmd/TpmConfiguration/TpmConfiguration/TpmProfile_Misc.h
to set build option for TPM reference library.
This file redefines below defines:
- MAX_CONTEXT_SIZE
- NV_CLOCK_UPDATE_INTERVAL
- MAX_NV_IND... | TcgTpmPkg/Library/TpmLib/Include/TpmConfiguration/TpmProfile_Misc.h | null | null | null | null | null |
source | edk2 | /** @file
This file connects TCG TPM openssl usage to EDKII's crypto library.
The original reference was taken from
- https://github.com/TrustedComputingGroup/TPM/blob/main/TPMCmd/tpm/cryptolibs/Ossl/BnToOsslMath.c
and has been modified to use the EDK2 crypto library interfaces.
**/
#include "BnOssl.h"
#if... | TcgTpmPkg/Library/TpmLib/Ossl/BnToOsslMath.c | null | null | null | null | null |
source | edk2 | /** @file
This file connects TCG TPM openssl usage to EDKII's crypto library.
The original reference was taken from
- https://github.com/TrustedComputingGroup/TPM/blob/main/TPMCmd/tpm/cryptolibs/Ossl/TpmToOsslSupport.c
and has been modified to use the EDK2 crypto library interfaces.
**/
#include "BnOssl.h"
... | TcgTpmPkg/Library/TpmLib/Ossl/TpmToOsslSupport.c | null | null | null | null | null |
source | edk2 | /** @file
UEFI Application to display CPUID leaf information.
Copyright (c) 2016 - 2023, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#include <Uefi.h>
#include <Library/BaseLib.h>
#include <Library/UefiLib.h>
#include <Register/Intel/Cpuid.h>
///
/// Macro used... | UefiCpuPkg/Application/Cpuid/Cpuid.c | null | null | null | null | null |
source | edk2 | /** @file
CPU DXE Module to produce CPU ARCH Protocol.
Copyright (c) 2008 - 2023, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#include "CpuDxe.h"
#include "CpuMp.h"
#include "CpuPageTable.h"
#define CPU_INTERRUPT_NUM 256
//
// Global Variables
//
BOOLEAN ... | UefiCpuPkg/CpuDxe/CpuDxe.c | null | null | null | null | null |
source | edk2 | /** @file
CPU DXE Module to produce CPU ARCH Protocol and CPU MP Protocol.
Copyright (c) 2008 - 2023, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#pragma once
#include <PiDxe.h>
#include <Protocol/Cpu.h>
#include <Protocol/MpService.h>
#include <Register/Intel... | UefiCpuPkg/CpuDxe/CpuDxe.h | null | null | null | null | null |
source | edk2 | /** @file
C based implementation of IA32 interrupt handling only
requiring a minimal assembly interrupt entry point.
Copyright (c) 2006 - 2021, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#include "CpuDxe.h"
#include "CpuGdt.h"
//
// Global descriptor table (... | UefiCpuPkg/CpuDxe/CpuGdt.c | null | null | null | null | null |
source | edk2 | /** @file
C based implementation of IA32 interrupt handling only
requiring a minimal assembly interrupt entry point.
Copyright (c) 2006 - 2015, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#pragma once
//
// Local structure definitions
//
#pragma pack (1)
//... | UefiCpuPkg/CpuDxe/CpuGdt.h | null | null | null | null | null |
source | edk2 | /** @file
CPU DXE Module to produce CPU MP Protocol.
Copyright (c) 2008 - 2022, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#include "CpuDxe.h"
#include "CpuMp.h"
EFI_HANDLE mMpServiceHandle = NULL;
UINTN mNumberOfProcessors = 1;
EFI_MP_SERVICES_PROT... | UefiCpuPkg/CpuDxe/CpuMp.c | null | null | null | null | null |
source | edk2 | /** @file
CPU DXE MP support
Copyright (c) 2006 - 2016, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#pragma once
/**
Initialize Multi-processor support.
**/
VOID
InitializeMpSupport (
VOID
);
/**
This service retrieves the number of logical processor ... | UefiCpuPkg/CpuDxe/CpuMp.h | null | null | null | null | null |
source | edk2 | /** @file
Page table management support.
Copyright (c) 2017 - 2019, Intel Corporation. All rights reserved.<BR>
Copyright (c) 2017, AMD Incorporated. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#include <Base.h>
#include <Uefi.h>
#include <Library/PeCoffGetEntryPointLib.h>
#inc... | UefiCpuPkg/CpuDxe/CpuPageTable.c | null | null | null | null | null |
source | edk2 | /** @file
Page table management header file.
Copyright (c) 2017 - 2019, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#pragma once
#include <IndustryStandard/PeImage.h>
#include <Protocol/MemoryAttribute.h>
#define PAGE_TABLE_LIB_PAGING_CONTEXT_IA32_X64_ATTRIBUT... | UefiCpuPkg/CpuDxe/CpuPageTable.h | null | null | null | null | null |
source | edk2 | /** @file
Return Paging attribute.
Copyright (c) 2019, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#include "CpuPageTable.h"
/**
Get paging details.
@param PagingContextData The paging context.
@param PageTableBase Return PageTableBase fi... | UefiCpuPkg/CpuDxe/Ia32/PagingAttribute.c | null | null | null | null | null |
source | edk2 | /** @file CpuDxe.c
CPU DXE Module to produce CPU ARCH Protocol.
Copyright (c) 2024, Loongson Technology Corporation Limited. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#include "CpuDxe.h"
#include "CpuMp.h"
#include <Guid/IdleLoopEvent.h>
#include <Library/CpuMmuLib.h>
#include ... | UefiCpuPkg/CpuDxe/LoongArch64/CpuDxe.c | null | null | null | null | null |
source | edk2 | /** @file CpuDxe.c
CPU DXE Module to produce CPU ARCH Protocol.
Copyright (c) 2024, Loongson Technology Corporation Limited. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#pragma once
#include <Uefi.h>
#include <Library/BaseMemoryLib.h>
#include <Library/CacheMaintenanceLib.h>
#in... | UefiCpuPkg/CpuDxe/LoongArch64/CpuDxe.h | null | null | null | null | null |
source | edk2 | /** @file
CPU DXE Module to produce CPU MP Protocol.
Copyright (c) 2024, Loongson Technology Corporation Limited. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#include "CpuDxe.h"
#include "CpuMp.h"
EFI_HANDLE mMpServiceHandle = NULL;
UINTN mNumberOfProcessors = 1;
EFI_M... | UefiCpuPkg/CpuDxe/LoongArch64/CpuMp.c | null | null | null | null | null |
source | edk2 | /** @file Exception.c
CPU DXE Module initialization exception instance.
Copyright (c) 2024, Loongson Technology Corporation Limited. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#include "CpuDxe.h"
#include <Guid/VectorHandoffTable.h>
#include <Library/CpuExceptionHandlerLib.h>
#i... | UefiCpuPkg/CpuDxe/LoongArch64/Exception.c | null | null | null | null | null |
source | edk2 | /** @file
Return Paging attribute.
Copyright (c) 2019, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#include "CpuPageTable.h"
/**
Get paging details.
@param PagingContextData The paging context.
@param PageTableBase Return PageTableBase fi... | UefiCpuPkg/CpuDxe/X64/PagingAttribute.c | null | null | null | null | null |
source | edk2 | /** @file
RISC-V CPU DXE driver.
Copyright (c) 2016 - 2022, Hewlett Packard Enterprise Development LP. All rights reserved.<BR>
Copyright (c) 2022, Ventana Micro Systems Inc. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#include "CpuDxe.h"
//
// Global Variables
//
STATIC BOOLE... | UefiCpuPkg/CpuDxeRiscV64/CpuDxe.c | null | null | null | null | null |
source | edk2 | /** @file
RISC-V CPU DXE module header file.
Copyright (c) 2016 - 2022, Hewlett Packard Enterprise Development LP. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#pragma once
#include <PiDxe.h>
#include <Guid/RiscVSecHobData.h>
#include <Protocol/Cpu.h>
#include <Protocol/RiscVBoo... | UefiCpuPkg/CpuDxeRiscV64/CpuDxe.h | null | null | null | null | null |
source | edk2 | /** @file
CPU Features DXE driver to initialize CPU features.
Copyright (c) 2017 - 2018, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#include <PiDxe.h>
#include <Library/BaseLib.h>
#include <Library/DebugLib.h>
#include <Library/UefiLib.h>
#include <Library/Uef... | UefiCpuPkg/CpuFeatures/CpuFeaturesDxe.c | null | null | null | null | null |
source | edk2 | /** @file
CPU Features PEIM driver to initialize CPU features.
Copyright (c) 2017, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#include <PiPei.h>
#include <Library/BaseLib.h>
#include <Library/DebugLib.h>
#include <Library/PeiServicesLib.h>
#include <Library/Re... | UefiCpuPkg/CpuFeatures/CpuFeaturesPei.c | null | null | null | null | null |
source | edk2 | /** @file
Produces the CPU I/O 2 Protocol.
Copyright (c) 2009 - 2018, Intel Corporation. All rights reserved.<BR>
Copyright (c) 2017, AMD Incorporated. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#include "CpuIo2Dxe.h"
//
// Handle for the CPU I/O 2 Protocol
//
EFI_HANDLE mHandle =... | UefiCpuPkg/CpuIo2Dxe/CpuIo2Dxe.c | null | null | null | null | null |
source | edk2 | /** @file
Internal include file for the CPU I/O 2 Protocol.
Copyright (c) 2009 - 2018, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#pragma once
#include <PiDxe.h>
#include <Protocol/CpuIo2.h>
#include <Library/BaseLib.h>
#include <Library/DebugLib.h>
#include <Li... | UefiCpuPkg/CpuIo2Dxe/CpuIo2Dxe.h | null | null | null | null | null |
source | edk2 | /** @file
Produces the SMM CPU I/O Protocol.
Copyright (c) 2009 - 2018, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#include "CpuIo2Mm.h"
//
// Handle for the SMM CPU I/O Protocol
//
EFI_HANDLE mHandle = NULL;
//
// SMM CPU I/O Protocol instance
//
EFI_SMM_CPU_IO... | UefiCpuPkg/CpuIo2Smm/CpuIo2Mm.c | null | null | null | null | null |
source | edk2 | /** @file
Internal include file for the SMM CPU I/O Protocol.
Copyright (c) 2009 - 2018, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#pragma once
#include <PiSmm.h>
#include <Protocol/SmmCpuIo2.h>
#include <Library/BaseLib.h>
#include <Library/DebugLib.h>
#includ... | UefiCpuPkg/CpuIo2Smm/CpuIo2Mm.h | null | null | null | null | null |
source | edk2 | /** @file
Produces the SMM CPU I/O Protocol.
Copyright (c) 2009 - 2018, Intel Corporation. All rights reserved.<BR>
Copyright (c) Microsoft Corporation.
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#include <PiSmm.h>
#include "CpuIo2Mm.h"
/**
The module Entry Point for Traditional MM CpuIoProtocol driver
... | UefiCpuPkg/CpuIo2Smm/CpuIo2Smm.c | null | null | null | null | null |
source | edk2 | /** @file
Produces the SMM CPU I/O Protocol.
Copyright (c) 2009 - 2018, Intel Corporation. All rights reserved.<BR>
Copyright (c) Microsoft Corporation.
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#include <PiMm.h>
#include "CpuIo2Mm.h"
/**
The module Entry Point for Standalone MM CpuIoProtocol driver
... | UefiCpuPkg/CpuIo2Smm/CpuIo2StandaloneMm.c | null | null | null | null | null |
source | edk2 | /** @file
Produces the CPU I/O PPI.
Copyright (c) 2009 - 2018, Intel Corporation. All rights reserved.<BR>
Copyright (c) 2017, AMD Incorporated. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#include "CpuIoPei.h"
//
// Instance of CPU I/O PPI
//
EFI_PEI_CPU_IO_PPI gCpuIoPpi = {
{
... | UefiCpuPkg/CpuIoPei/CpuIoPei.c | null | null | null | null | null |
source | edk2 | /** @file
Internal include file for the CPU I/O PPI.
Copyright (c) 2009 - 2018, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#pragma once
#include <PiDxe.h>
#include <Ppi/CpuIo.h>
#include <Library/BaseLib.h>
#include <Library/DebugLib.h>
#include <Library/IoLib.h... | UefiCpuPkg/CpuIoPei/CpuIoPei.h | null | null | null | null | null |
source | edk2 | /** @file
Produces the CPU I/O 2 Protocol.
Copyright (c) 2009 - 2012, Intel Corporation. All rights reserved.<BR>
Copyright (c) 2016, Linaro Ltd. All rights reserved.<BR>
Copyright (c) 2024 Loongson Technology Corporation Limited. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#include ... | UefiCpuPkg/CpuMmio2Dxe/CpuMmio2Dxe.c | null | null | null | null | null |
source | edk2 | /** @file
Update and publish processors' BIST information.
Copyright (c) 2015 - 2018, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#include "CpuMpPei.h"
EFI_SEC_PLATFORM_INFORMATION2_PPI mSecPlatformInformation2Ppi = {
SecPlatformInformation2
};
EFI_PEI_PPI_... | UefiCpuPkg/CpuMpPei/CpuBist.c | null | null | null | null | null |
source | edk2 | /** @file
EFI_PEI_MP_SERVICES_PPI Implementation code.
Copyright (c) 2015 - 2022, Intel Corporation. All rights reserved.<BR>
Copyright (c) 2025, Loongson Technology Corporation Limited. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#include "CpuMpPei.h"
//
// CPU MP PPI to be in... | UefiCpuPkg/CpuMpPei/CpuMp.c | null | null | null | null | null |
source | edk2 | /** @file
EFI_PEI_MP_SERVICES2_PPI Implementation code.
Copyright (c) 2019, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#include "CpuMp2Pei.h"
/**
This service retrieves the number of logical processor in the platform
and the number of those logical process... | UefiCpuPkg/CpuMpPei/CpuMp2.c | null | null | null | null | null |
source | edk2 | /** @file
Definitions to install Multiple Processor 2 PPI.
Copyright (c) 2015 - 2023, Intel Corporation. All rights reserved.<BR>
Copyright (c) 2025, Loongson Technology Corporation Limited. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#pragma once
#include "CpuMpPei.h"
#include... | UefiCpuPkg/CpuMpPei/CpuMp2Pei.h | null | null | null | null | null |
source | edk2 | /** @file
CPU PEI Module installs CPU Multiple Processor PPI.
Copyright (c) 2015 - 2022, Intel Corporation. All rights reserved.<BR>
Copyright (c) 2025, Loongson Technology Corporation Limited. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#include "CpuMp2Pei.h"
EFI_PEI_PPI_DESCR... | UefiCpuPkg/CpuMpPei/CpuMpPei.c | null | null | null | null | null |
source | edk2 | /** @file
Definitions to install Multiple Processor PPI.
Copyright (c) 2015 - 2023, Intel Corporation. All rights reserved.<BR>
Copyright (c) 2025, Loongson Technology Corporation Limited. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#pragma once
#include <PiPei.h>
#include <Pp... | UefiCpuPkg/CpuMpPei/CpuMpPei.h | null | null | null | null | null |
source | edk2 | /** @file
Basic paging support for the CPU to enable Stack Guard.
Copyright (c) 2018 - 2019, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#include <Register/Intel/Cpuid.h>
#include <Register/Intel/Msr.h>
#include <Library/MemoryAllocationLib.h>
#include <Library/Cpu... | UefiCpuPkg/CpuMpPei/CpuPaging.c | null | null | null | null | null |
source | edk2 | /** @file
CPU PEI Module installs CPU Multiple Processor PPI.
Copyright (c) 2015 - 2022, Intel Corporation. All rights reserved.<BR>
Copyright (c) 2025, Loongson Technology Corporation Limited. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#include "CpuMp2Pei.h"
EFI_PEI_PPI_DESCR... | UefiCpuPkg/CpuMpPei/LoongArch64/CpuMpPei.c | null | null | null | null | null |
source | edk2 | /** @file
ACPI CPU Data initialization module
This module initializes the ACPI_CPU_DATA structure and registers the address
of this structure in the PcdCpuS3DataAddress PCD. This is a generic/simple
version of this module. It does not provide a machine check handler or CPU
register initialization tables for ACPI S3 ... | UefiCpuPkg/CpuS3DataDxe/CpuS3Data.c | null | null | null | null | null |
source | edk2 | /** @file
RISC-V Timer Architectural Protocol
Copyright (c) 2019, Hewlett Packard Enterprise Development LP. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#include <Library/BaseLib.h>
#include <Library/BaseRiscVSbiLib.h>
#include <Library/UefiLib.h>
#include <Library/TimerLib.h>
#i... | UefiCpuPkg/CpuTimerDxeRiscV64/Timer.c | null | null | null | null | null |
source | edk2 | /** @file
RISC-V Timer Architectural Protocol definitions
Copyright (c) 2019, Hewlett Packard Enterprise Development LP. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#pragma once
#include <PiDxe.h>
#include <Protocol/Cpu.h>
#include <Protocol/Timer.h>
#include <Library/UefiBoot... | UefiCpuPkg/CpuTimerDxeRiscV64/Timer.h | null | null | null | null | null |
source | edk2 | /** @file
Definitions for CPU S3 data.
Copyright (c) 2013 - 2021, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#pragma once
//
// This macro definition is used to fix incompatibility issue caused by
// ACPI_CPU_DATA structure update. It will be removed after all the p... | UefiCpuPkg/Include/AcpiCpuData.h | null | null | null | null | null |
source | edk2 | /** @file
Definition for a structure sharing information for CPU hot plug.
Copyright (c) 2013 - 2015, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#pragma once
#define CPU_HOT_PLUG_DATA_REVISION_1 0x00000001
typedef struct {
UINT32 Revision; // Used f... | UefiCpuPkg/Include/CpuHotPlugData.h | null | null | null | null | null |
source | edk2 | /** @file
CPU Features Init Done PPI/Protocol should be installed after CPU features
are initialized.
Copyright (c) 2016, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#pragma once
#define EDKII_CPU_FEATURES_INIT_DONE_GUID \
{ \
{ 0xc77c3a41, 0x61ab, 0x4143, ... | UefiCpuPkg/Include/Guid/CpuFeaturesInitDone.h | null | null | null | null | null |
source | edk2 | /** @file
CPU Features Set Done PPI/Protocol should be installed after CPU features
configuration are set.
Copyright (c) 2016, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#pragma once
#define EDKII_CPU_FEATURES_SET_DONE_GUID \
{ \
{ 0xa82485ce, 0xad6b, 0x41... | UefiCpuPkg/Include/Guid/CpuFeaturesSetDone.h | null | null | null | null | null |
source | edk2 | /** @file
APIC ID list retrieved for an SEV-ES/SEV-SNP guest via the GHCB.
Copyright (C) 2024, Advanced Micro Devices, Inc. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#pragma once
#define GHCB_APIC_IDS_GUID \
{ 0xbc964338, 0xee39, 0x4fc8, { 0xa2, 0x24, 0x10, 0x10, 0x8b, 0x17, ... | UefiCpuPkg/Include/Guid/GhcbApicIds.h | null | null | null | null | null |
source | edk2 | /** @file
The microcode patch HOB is used to store the information of:
A. Base address and size of the loaded microcode patches data;
B. Detected microcode patch for each processor within system.
Copyright (c) 2019, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
... | UefiCpuPkg/Include/Guid/MicrocodePatchHob.h | null | null | null | null | null |
source | edk2 | /** @file
This file defines ACPI_S3_ENABLE structure which indicates to x86 standalone MM whether S3 is enabled.
Copyright (c) 2024, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#pragma once
///
/// The GUID of the MmAcpiS3Enable GUIDed HOB.
///
#define MM_ACPI... | UefiCpuPkg/Include/Guid/MmAcpiS3Enable.h | null | null | null | null | null |
source | edk2 | /** @file
This file defines MM_CPU_SYNC_CONFIG which controls how BSP synchronizes with APs
in x86 SMM environment.
Copyright (c) 2024, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#pragma once
///
/// The GUID of the MmCpuSyncConfig GUIDed HOB.
///
#define M... | UefiCpuPkg/Include/Guid/MmCpuSyncConfig.h | null | null | null | null | null |
source | edk2 | /** @file
This file contains related definitions to support MM Profile feature in standalone MM.
Copyright (c) 2024, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#pragma once
///
/// This GUID is assigned to the Name field of EFI_HOB_MEMORY_ALLOCATION.AllocDesc... | UefiCpuPkg/Include/Guid/MmProfileData.h | null | null | null | null | null |
source | edk2 | /** @file
Defines the GUIDed HOB that describes the memory region to be unblocked in MM environment.
Copyright (c) 2024, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#pragma once
///
/// The GUID of the UnblockRegion GUIDed HOB.
///
#define MM_UNBLOCK_REGION_HOB_... | UefiCpuPkg/Include/Guid/MmUnblockRegion.h | null | null | null | null | null |
source | edk2 | /** @file
MP information HOB to be provided by MP service module.
MP information HOB only provides static information of MP processors.
If SwitchBSP or Enable/DisableAP in MP service is called between the HOB
production and HOB consumption, EFI_PROCESSOR_INFORMATION.StatusFlag field
in this HOB may be inval... | UefiCpuPkg/Include/Guid/MpInformation2.h | null | null | null | null | null |
source | edk2 | /** @file
Defines the HOB GUID used to describe the MSEG memory region allocated in PEI.
Copyright (c) 2015 - 2016, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#pragma once
#define MSEG_SMRAM_GUID \
{ \
0x5802bce4, 0xeeee, 0x4e33, { 0xa1, 0x30, 0xeb, 0xa... | UefiCpuPkg/Include/Guid/MsegSmram.h | null | null | null | null | null |
source | edk2 | /** @file
Processor resource HOB
If BSP does not known how many cores are online or the platform cannot
wake up AP via broadcast, this HOB can be used to store the processor
resource data that may come from ACPI or FDT, etc.
Copyright (c) 2024, Loongson Technology Corporation Limited. All rights reserved.<B... | UefiCpuPkg/Include/Guid/ProcessorResourceHob.h | null | null | null | null | null |
source | edk2 | /** @file
RISC-V SEC Data Hob to pass booting information between SEC, PEI and DXE.
Copyright (c) 2025, Ventana Micro Systems Inc.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#pragma once
#include <PiPei.h>
#define RISCV_SEC_HANDOFF_HOB_GUID { 0xe5ad277d, 0xc2a2, 0x4462, { 0xb1, 0x60, 0x1e, 0x37, ... | UefiCpuPkg/Include/Guid/RiscVSecHobData.h | null | null | null | null | null |
source | edk2 | /** @file
The Smm Base HOB is used to store the information of:
* The relocated SmBase address in array for each processor.
The default Smbase for the x86 processor is 0x30000. When SMI happens, processor
runs the SMI handler at Smbase+0x8000. Also, the SMM save state area is within
Smbase+0x10000. Since it'... | UefiCpuPkg/Include/Guid/SmmBaseHob.h | null | null | null | null | null |
source | edk2 | /** @file
Public header file for the AmdSvsmLib.
This library class defines some routines used for invoking an SVSM when the
guest is not running at VMPL0.
Copyright (C) 2024, Advanced Micro Devices, Inc. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#pragma once
#include <Pro... | UefiCpuPkg/Include/Library/AmdSvsmLib.h | null | null | null | null | null |
source | edk2 | /** @file
Provides function interface to perform syscall.
Copyright (C) Microsoft Corporation.
Copyright (C) 2025 Advanced Micro Devices, Inc. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#pragma once
#include <Uefi.h>
typedef enum {
SMM_SC_RDMSR = 0,
SMM_SC_WRMSR =... | UefiCpuPkg/Include/Library/AmdSysCallLib.h | null | null | null | null | null |
source | edk2 | /** @file
Copyright (c) 2015 - 2016, Linaro Ltd. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#pragma once
#include <Uefi/UefiBaseType.h>
#include <Library/ArmLib.h>
EFI_STATUS
EFIAPI
ArmConfigureMmu (
IN ARM_MEMORY_REGION_DESCRIPTOR *MemoryTable,
OUT VOID ... | UefiCpuPkg/Include/Library/ArmMmuLib.h | null | null | null | null | null |
source | edk2 | /** @file
Base Architecture Libraries Support.
Copyright 2024 Google LLC
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#pragma once
#include <Base.h>
/**
Report the Physical Address size supported by Processor.
For X86, returns the actual Physical Address size reported by CPUID.
For AArch64, retur... | UefiCpuPkg/Include/Library/BaseArchLibSupport.h | null | null | null | null | null |
source | edk2 | /** @file
Copyright (c) 2015 - 2016, Linaro Ltd. All rights reserved.<BR>
Copyright (c) 2023, Ventana Micro Systems Inc. All Rights Reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#pragma once
/**
The API to flush all local TLBs.
**/
VOID
EFIAPI
RiscVLocalTlbFlushAll (
VOID
);
/**
Th... | UefiCpuPkg/Include/Library/BaseRiscVMmuLib.h | null | null | null | null | null |
source | edk2 | /** @file
Public header file for the CcExitLib.
This library class defines some routines used for below CcExit handler.
- Invoking the VMGEXIT instruction in support of SEV-ES and to handle
#VC exceptions.
- Handle #VE exception in TDX.
Copyright (C) 2020, Advanced Micro Devices, Inc. All rights rese... | UefiCpuPkg/Include/Library/CcExitLib.h | null | null | null | null | null |
source | edk2 | /** @file
Header file for CPU Cache info Library.
Copyright (c) 2020 - 2021, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#pragma once
typedef struct {
//
// Package number.
//
UINT32 Package;
//
// Core type of logical processor.
// Value = CPU... | UefiCpuPkg/Include/Library/CpuCacheInfoLib.h | null | null | null | null | null |
source | edk2 | /** @file
Copyright (c) 2024 Loongson Technology Corporation Limited. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#pragma once
#include <Uefi/UefiBaseType.h>
/**
Maps the memory region in the page table to the specified attributes.
@param[in, out] PageTable The pointer ... | UefiCpuPkg/Include/Library/CpuMmuLib.h | null | null | null | null | null |
source | edk2 | /** @file
Public include file for PageTableLib library.
Copyright (c) 2022 - 2026, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#pragma once
typedef union {
struct {
UINT32 Present : 1; // 0 = Not present in memory, 1 = Present in memo... | UefiCpuPkg/Include/Library/CpuPageTableLib.h | null | null | null | null | null |
source | edk2 | /** @file
Public include file for Local APIC library.
Local APIC library assumes local APIC is enabled. It does not
handles cases where local APIC is disabled.
Copyright (c) 2010 - 2023, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#pragma once
#define LOCA... | UefiCpuPkg/Include/Library/LocalApicLib.h | null | null | null | null | null |
source | edk2 | /** @file
Public include file for Microcode library.
Copyright (c) 2021, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#pragma once
#include <Register/Intel/Microcode.h>
#include <Ppi/ShadowMicrocode.h>
/**
Get microcode update signature of currently loaded mi... | UefiCpuPkg/Include/Library/MicrocodeLib.h | null | null | null | null | null |
source | edk2 | /** @file
Library that provides service to read/write CPU specific smram save state registers.
Copyright (c) 2010 - 2019, Intel Corporation. All rights reserved.<BR>
Copyright (C) 2023 Advanced Micro Devices, Inc. All rights reserved.<BR>
@note
SaveState(Read/Write) of EFI_SMM_SAVE_STATE_REGISTER_PROCESSOR_ID/EFI_M... | UefiCpuPkg/Include/Library/MmSaveStateLib.h | null | null | null | null | null |
source | edk2 | /** @file
Multiple-Processor initialization Library.
Copyright (c) 2016 - 2019, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#pragma once
#include <Ppi/SecPlatformInformation.h>
#include <Protocol/MpService.h>
/**
MP Initialize Library initialization.
This... | UefiCpuPkg/Include/Library/MpInitLib.h | null | null | null | null | null |
source | edk2 | /** @file
MTRR setting library
Copyright (c) 2008 - 2023, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#pragma once
#include <Register/Intel/ArchitecturalMsr.h>
//
// According to IA32 SDM, MTRRs number and MSR offset are always consistent
// for IA32 processor... | UefiCpuPkg/Include/Library/MtrrLib.h | null | null | null | null | null |
source | edk2 | /** @file
This library class defines interface for platform to perform platform
specific initialization in SEC phase.
Copyright (c) 2013 - 2015, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#pragma once
/**
A developer supplied function to perform platform specific ... | UefiCpuPkg/Include/Library/PlatformSecLib.h | null | null | null | null | null |
source | edk2 | /** @file
Register CPU Features Library to register and manage CPU features.
Copyright (c) 2017 - 2020, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#pragma once
#include <AcpiCpuData.h>
#include <Register/Intel/Cpuid.h>
#include <Protocol/MpService.h>
///
/// ... | UefiCpuPkg/Include/Library/RegisterCpuFeaturesLib.h | null | null | null | null | null |
source | edk2 | /** @file
Library that provides CPU specific functions to support the PiSmmCpuDxeSmm module.
Copyright (c) 2015 - 2019, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#pragma once
#include <Protocol/MpService.h>
#include <Protocol/SmmCpu.h>
#include <Register/Intel/Smra... | UefiCpuPkg/Include/Library/SmmCpuFeaturesLib.h | null | null | null | null | null |
source | edk2 | /** @file
Public include file for the SMM CPU Platform Hook Library.
Copyright (c) 2010 - 2024, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#pragma once
///
/// SMM Page Size Type
///
typedef enum {
SmmPageSize4K,
SmmPageSize2M,
SmmPageSize1G,
MaxSmmPag... | UefiCpuPkg/Include/Library/SmmCpuPlatformHookLib.h | null | null | null | null | null |
source | edk2 | /** @file
Library that provides SMM CPU Sync related operations.
The lib provides 3 sets of APIs:
1. ContextInit/ContextDeinit/ContextReset:
ContextInit() is called in driver's entrypoint to allocate and initialize the SMM CPU Sync context.
ContextDeinit() is called in driver's unload function to deinit... | UefiCpuPkg/Include/Library/SmmCpuSyncLib.h | null | null | null | null | null |
source | edk2 | /** @file
Header file for SMM Relocation Library.
The SmmRelocationLib class provides the SmmRelocationInit()
interface for platform to do the smbase relocation, which
shall provide below 2 functionalities:
1. Relocate SmBases for each processor.
2. Create the SmBase HOB (gSmmBaseHobGuid).
With SmmReloc... | UefiCpuPkg/Include/Library/SmmRelocationLib.h | null | null | null | null | null |
source | edk2 | /** @file
This file declares Sec Platform Information PPI.
This service is the primary handoff state into the PEI Foundation.
The Security (SEC) component creates the early, transitory memory
environment and also encapsulates knowledge of at least the
location of the Boot Firmware Volume (BFV).
Copyright ... | UefiCpuPkg/Include/Ppi/RepublishSecPpi.h | null | null | null | null | null |
source | edk2 | /** @file
This file declares EDKII Shadow Microcode PPI.
Copyright (c) 2020, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#pragma once
#define EDKII_PEI_SHADOW_MICROCODE_PPI_GUID \
{ \
0x430f6965, 0x9a69, 0x41c5, { 0x93, 0xed, 0x8b, 0xf0, 0x64, 0x35, 0xc1,... | UefiCpuPkg/Include/Ppi/ShadowMicrocode.h | null | null | null | null | null |
source | edk2 | /** @file
RISC-V Boot Protocol mandatory for RISC-V UEFI platforms.
@par Revision Reference:
The protocol specification can be found at
https://github.com/riscv-non-isa/riscv-uefi
Copyright (c) 2022, Ventana Micro Systems Inc. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#pr... | UefiCpuPkg/Include/Protocol/RiscVBootProtocol.h | null | null | null | null | null |
source | edk2 | /** @file
STM service protocol definition
Copyright (c) 2015 - 2019, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#pragma once
#include <PiSmm.h>
#include <Register/Intel/StmApi.h>
#define EFI_SM_MONITOR_INIT_PROTOCOL_GUID \
{ 0x228f344d, 0xb3de, 0x43bb, 0x... | UefiCpuPkg/Include/Protocol/SmMonitorInit.h | null | null | null | null | null |
source | edk2 | /** @file
SMM CPU Service protocol definition.
Copyright (c) 2013 - 2022, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#pragma once
//
// Share some definitions with MP Services and CPU Arch Protocol
//
#include <Protocol/MpService.h>
#include <Protocol/Cpu.h>
#defin... | UefiCpuPkg/Include/Protocol/SmmCpuService.h | null | null | null | null | null |
source | edk2 | /** @file
Wrapper header file to include <Register/Intel/ArchitecturalMsr.h> in MdePkg.
Copyright (c) 2016 - 2019, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#pragma once
#include <Register/Intel/ArchitecturalMsr.h> | UefiCpuPkg/Include/Register/ArchitecturalMsr.h | null | null | null | null | null |
source | edk2 | /** @file
Wrapper header file to include <Register/Intel/Cpuid.h> in MdePkg.
Copyright (c) 2015 - 2019, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#pragma once
#include <Register/Intel/Cpuid.h> | UefiCpuPkg/Include/Register/Cpuid.h | null | null | null | null | null |
source | edk2 | /** @file
Wrapper header file to include <Register/Intel/LocalApic.h> in MdePkg.
Copyright (c) 2010 - 2019, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#pragma once
#include <Register/Intel/LocalApic.h> | UefiCpuPkg/Include/Register/LocalApic.h | null | null | null | null | null |
source | edk2 | /** @file
Wrapper header file to include <Register/Intel/Microcode.h> in MdePkg.
Copyright (c) 2016 - 2019, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#pragma once
#include <Register/Intel/Microcode.h> | UefiCpuPkg/Include/Register/Microcode.h | null | null | null | null | null |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.