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 | //------------------------------------------------------------------------------
//
// Read CPU timer
//
// Copyright (c) 2020, Hewlett Packard Enterprise Development LP. All rights reserved.<BR>
//
// SPDX-License-Identifier: BSD-2-Clause-Patent
//
//--------------------------------------------------------------------... | MdePkg/Library/BaseLib/RiscV64/ReadTimer.S | null | null | null | null | null |
source | edk2 | //------------------------------------------------------------------------------
//
// RISC-V cache operation.
//
// Copyright (c) 2020, Hewlett Packard Enterprise Development LP. All rights reserved.<BR>
// Copyright (c) 2023, Rivos Inc. All rights reserved.<BR>
//
// SPDX-License-Identifier: BSD-2-Clause-Patent
//
//... | MdePkg/Library/BaseLib/RiscV64/RiscVCacheMgmt.S | null | null | null | null | null |
source | edk2 | //------------------------------------------------------------------------------
//
// CpuBreakpoint for RISC-V
//
// Copyright (c) 2020, Hewlett Packard Enterprise Development LP. All rights reserved.<BR>
//
// SPDX-License-Identifier: BSD-2-Clause-Patent
//
//----------------------------------------------------------... | MdePkg/Library/BaseLib/RiscV64/RiscVCpuBreakpoint.S | null | null | null | null | null |
source | edk2 | //------------------------------------------------------------------------------
//
// CpuPause for RISC-V
//
// Copyright (c) 2020, Hewlett Packard Enterprise Development LP. All rights reserved.<BR>
//
// SPDX-License-Identifier: BSD-2-Clause-Patent
//
//---------------------------------------------------------------... | MdePkg/Library/BaseLib/RiscV64/RiscVCpuPause.S | null | null | null | null | null |
source | edk2 | //------------------------------------------------------------------------------
//
// RISC-V Supervisor Mode interrupt enable/disable
//
// Copyright (c) 2020, Hewlett Packard Enterprise Development LP. All rights reserved.<BR>
//
// SPDX-License-Identifier: BSD-2-Clause-Patent
//
//-----------------------------------... | MdePkg/Library/BaseLib/RiscV64/RiscVInterrupt.S | null | null | null | null | null |
source | edk2 | //------------------------------------------------------------------------------
//
// CPU scratch register related functions for RISC-V
//
// Copyright (c) 2020, Hewlett Packard Enterprise Development LP. All rights reserved.<BR>
//
// SPDX-License-Identifier: BSD-2-Clause-Patent
//
//---------------------------------... | MdePkg/Library/BaseLib/RiscV64/RiscVMmu.S | null | null | null | null | null |
source | edk2 | //------------------------------------------------------------------------------
//
// Set/Long jump for RISC-V
//
// Copyright (c) 2020, Hewlett Packard Enterprise Development LP. All rights reserved.<BR>
// Copyright (c) 2023, Intel Corporation. All rights reserved.<BR>
//
// SPDX-License-Identifier: BSD-2-Clause-Pat... | MdePkg/Library/BaseLib/RiscV64/RiscVSetJumpLongJump.S | null | null | null | null | null |
source | edk2 | ##------------------------------------------------------------------------------
#
# SpeculationBarrier() for RISCV64
#
# Copyright (c) 2023, Intel Corporation. All rights reserved.
#
# SPDX-License-Identifier: BSD-2-Clause-Patent
#
##------------------------------------------------------------------------------
.text... | MdePkg/Library/BaseLib/RiscV64/SpeculationBarrier.S | null | null | null | null | null |
source | edk2 | //------------------------------------------------------------------------------
//
// InternalSwitchStackAsm for RISC-V
//
// Copyright (c) 2023, Bosc Corporation. All rights reserved.<BR>
//
// SPDX-License-Identifier: BSD-2-Clause-Patent
//
//--------------------------------------------------------------------------... | MdePkg/Library/BaseLib/RiscV64/SwitchStack.S | null | null | null | null | null |
source | edk2 | /** @file
GCC inline implementation of BaseLib processor specific functions.
Copyright (c) 2006 - 2020, Intel Corporation. All rights reserved.<BR>
Portions copyright (c) 2008 - 2009, Apple Inc. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#include "BaseLibInternals.h"
/**
Use... | MdePkg/Library/BaseLib/X64/GccInline.c | null | null | null | null | null |
source | edk2 | /** @file
GCC inline implementation of BaseLib processor specific functions that use
privlidged instructions.
Copyright (c) 2006 - 2021, Intel Corporation. All rights reserved.<BR>
Portions copyright (c) 2008 - 2009, Apple Inc. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#incl... | MdePkg/Library/BaseLib/X64/GccInlinePriv.c | null | null | null | null | null |
source | edk2 | /** @file
Non-existing BaseLib functions on x64
Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#include <Library/BaseLib.h>
#include <Library/DebugLib.h>
/**
Enables the 32-bit paging mode on the CPU.
Enables the 32-bit paging mode ... | MdePkg/Library/BaseLib/X64/Non-existing.c | null | null | null | null | null |
source | edk2 | /** @file
CpuBreakpoint function.
Copyright (c) 2006 - 2021, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
/**
Microsoft Visual Studio 7.1 Function Prototypes for I/O Intrinsics.
**/
#include <Library/RegisterFilterLib.h>
unsigned __int64
__readmsr (
int reg... | MdePkg/Library/BaseLib/X64/ReadMsr64.c | null | null | null | null | null |
source | edk2 | /** @file
Copyright (c) 2025, Advanced Micro Devices, Inc. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#include <Library/BaseLib.h>
#include <Register/Amd/Cpuid.h>
#include <Register/Amd/SevSnpMsr.h>
#include <Register/Intel/Cpuid.h>
/**
Probe if running as some kind of SEV guest... | MdePkg/Library/BaseLib/X64/SevProbe.c | null | null | null | null | null |
source | edk2 | /** @file
Copyright (c) 2020-2021, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#include <Library/BaseLib.h>
#include <Register/Intel/Cpuid.h>
/**
Probe if TD is enabled.
@return TRUE TD is enabled.
@return FALSE TD is not enabled.
**/
BOOLEAN
EFIAPI
T... | MdePkg/Library/BaseLib/X64/TdProbe.c | null | null | null | null | null |
source | edk2 | /** @file
CpuBreakpoint function.
Copyright (c) 2006 - 2021, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
/**
Microsoft Visual Studio 7.1 Function Prototypes for I/O Intrinsics.
**/
#include <Library/RegisterFilterLib.h>
void
__writemsr (
unsigned long ... | MdePkg/Library/BaseLib/X64/WriteMsr64.c | null | null | null | null | null |
source | edk2 | /** @file
CompareMem() implementation.
The following BaseMemoryLib instances contain the same copy of this file:
BaseMemoryLib
BaseMemoryLibMmx
BaseMemoryLibSse2
BaseMemoryLibRepStr
BaseMemoryLibOptDxe
BaseMemoryLibOptPei
PeiMemoryLib
UefiMemoryLib
Copyright (c) 2006 - 2018, Intel ... | MdePkg/Library/BaseMemoryLib/CompareMemWrapper.c | null | null | null | null | null |
source | edk2 | /** @file
Implementation of the InternalMemCopyMem routine. This function is broken
out into its own source file so that it can be excluded from a build for a
particular platform easily if an optimized version is desired.
Copyright (c) 2006 - 2016, Intel Corporation. All rights reserved.<BR>
Copyright (c) 20... | MdePkg/Library/BaseMemoryLib/CopyMem.c | null | null | null | null | null |
source | edk2 | /** @file
CopyMem() implementation.
The following BaseMemoryLib instances contain the same copy of this file:
BaseMemoryLib
BaseMemoryLibMmx
BaseMemoryLibSse2
BaseMemoryLibRepStr
BaseMemoryLibOptDxe
BaseMemoryLibOptPei
PeiMemoryLib
UefiMemoryLib
Copyright (c) 2006 - 2018, Intel ... | MdePkg/Library/BaseMemoryLib/CopyMemWrapper.c | null | null | null | null | null |
source | edk2 | /** @file
Implementation of IsZeroBuffer function.
The following BaseMemoryLib instances contain the same copy of this file:
BaseMemoryLib
BaseMemoryLibMmx
BaseMemoryLibSse2
BaseMemoryLibRepStr
BaseMemoryLibOptDxe
BaseMemoryLibOptPei
PeiMemoryLib
UefiMemoryLib
Copyright (c) 2016... | MdePkg/Library/BaseMemoryLib/IsZeroBufferWrapper.c | null | null | null | null | null |
source | edk2 | /** @file
Architecture Independent Base Memory Library Implementation.
The following BaseMemoryLib instances contain the same copy of this file:
BaseMemoryLib
PeiMemoryLib
UefiMemoryLib
Copyright (c) 2006 - 2016, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Pat... | MdePkg/Library/BaseMemoryLib/MemLibGeneric.c | null | null | null | null | null |
source | edk2 | /** @file
Implementation of GUID functions.
The following BaseMemoryLib instances contain the same copy of this file:
BaseMemoryLib
BaseMemoryLibMmx
BaseMemoryLibSse2
BaseMemoryLibRepStr
BaseMemoryLibOptDxe
BaseMemoryLibOptPei
PeiMemoryLib
UefiMemoryLib
Copyright (c) 2006 - 2018... | MdePkg/Library/BaseMemoryLib/MemLibGuid.c | null | null | null | null | null |
source | edk2 | /** @file
Declaration of internal functions for Base Memory Library.
The following BaseMemoryLib instances contain the same copy of this file:
BaseMemoryLib
BaseMemoryLibMmx
BaseMemoryLibSse2
BaseMemoryLibRepStr
BaseMemoryLibOptDxe
BaseMemoryLibOptPei
Copyright (c) 2006 - 2016, Intel Cor... | MdePkg/Library/BaseMemoryLib/MemLibInternals.h | null | null | null | null | null |
source | edk2 | /** @file
ScanMem16() implementation.
The following BaseMemoryLib instances contain the same copy of this file:
BaseMemoryLib
BaseMemoryLibMmx
BaseMemoryLibSse2
BaseMemoryLibRepStr
BaseMemoryLibOptDxe
BaseMemoryLibOptPei
PeiMemoryLib
UefiMemoryLib
Copyright (c) 2006 - 2018, Inte... | MdePkg/Library/BaseMemoryLib/ScanMem16Wrapper.c | null | null | null | null | null |
source | edk2 | /** @file
ScanMem32() implementation.
The following BaseMemoryLib instances contain the same copy of this file:
BaseMemoryLib
BaseMemoryLibMmx
BaseMemoryLibSse2
BaseMemoryLibRepStr
BaseMemoryLibOptDxe
BaseMemoryLibOptPei
PeiMemoryLib
UefiMemoryLib
Copyright (c) 2006 - 2018, Intel... | MdePkg/Library/BaseMemoryLib/ScanMem32Wrapper.c | null | null | null | null | null |
source | edk2 | /** @file
ScanMem64() implementation.
The following BaseMemoryLib instances contain the same copy of this file:
BaseMemoryLib
BaseMemoryLibMmx
BaseMemoryLibSse2
BaseMemoryLibRepStr
BaseMemoryLibOptDxe
BaseMemoryLibOptPei
PeiMemoryLib
UefiMemoryLib
Copyright (c) 2006 - 2018, Inte... | MdePkg/Library/BaseMemoryLib/ScanMem64Wrapper.c | null | null | null | null | null |
source | edk2 | /** @file
ScanMem8() and ScanMemN() implementation.
The following BaseMemoryLib instances contain the same copy of this file:
BaseMemoryLib
BaseMemoryLibMmx
BaseMemoryLibSse2
BaseMemoryLibRepStr
BaseMemoryLibOptDxe
BaseMemoryLibOptPei
PeiMemoryLib
UefiMemoryLib
Copyright (c) 200... | MdePkg/Library/BaseMemoryLib/ScanMem8Wrapper.c | null | null | null | null | null |
source | edk2 | /** @file
Implementation of the EfiSetMem routine. This function is broken
out into its own source file so that it can be excluded from a
build for a particular platform easily if an optimized version
is desired.
Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.<BR>
Copyright (c) 2012 - 20... | MdePkg/Library/BaseMemoryLib/SetMem.c | null | null | null | null | null |
source | edk2 | /** @file
SetMem16() implementation.
The following BaseMemoryLib instances contain the same copy of this file:
BaseMemoryLib
BaseMemoryLibMmx
BaseMemoryLibSse2
BaseMemoryLibRepStr
BaseMemoryLibOptDxe
BaseMemoryLibOptPei
PeiMemoryLib
UefiMemoryLib
Copyright (c) 2006 - 2010, Intel ... | MdePkg/Library/BaseMemoryLib/SetMem16Wrapper.c | null | null | null | null | null |
source | edk2 | /** @file
SetMem32() implementation.
The following BaseMemoryLib instances contain the same copy of this file:
BaseMemoryLib
BaseMemoryLibMmx
BaseMemoryLibSse2
BaseMemoryLibRepStr
BaseMemoryLibOptDxe
BaseMemoryLibOptPei
PeiMemoryLib
UefiMemoryLib
Copyright (c) 2006 - 2010, Intel ... | MdePkg/Library/BaseMemoryLib/SetMem32Wrapper.c | null | null | null | null | null |
source | edk2 | /** @file
SetMem64() implementation.
The following BaseMemoryLib instances contain the same copy of this file:
BaseMemoryLib
BaseMemoryLibMmx
BaseMemoryLibSse2
BaseMemoryLibRepStr
BaseMemoryLibOptDxe
BaseMemoryLibOptPei
PeiMemoryLib
UefiMemoryLib
Copyright (c) 2006 - 2010, Intel ... | MdePkg/Library/BaseMemoryLib/SetMem64Wrapper.c | null | null | null | null | null |
source | edk2 | /** @file
SetMemN() implementation.
The following BaseMemoryLib instances contain the same copy of this file:
BaseMemoryLib
BaseMemoryLibMmx
BaseMemoryLibSse2
BaseMemoryLibRepStr
BaseMemoryLibOptDxe
BaseMemoryLibOptPei
PeiMemoryLib
UefiMemoryLib
Copyright (c) 2006 - 2018, Intel ... | MdePkg/Library/BaseMemoryLib/SetMemNWrapper.c | null | null | null | null | null |
source | edk2 | /** @file
SetMem() implementation.
The following BaseMemoryLib instances contain the same copy of this file:
BaseMemoryLib
BaseMemoryLibMmx
BaseMemoryLibSse2
BaseMemoryLibRepStr
BaseMemoryLibOptDxe
BaseMemoryLibOptPei
PeiMemoryLib
UefiMemoryLib
Copyright (c) 2006 - 2018, Intel C... | MdePkg/Library/BaseMemoryLib/SetMemWrapper.c | null | null | null | null | null |
source | edk2 | /** @file
ZeroMem() implementation.
The following BaseMemoryLib instances contain the same copy of this file:
BaseMemoryLib
BaseMemoryLibMmx
BaseMemoryLibSse2
BaseMemoryLibRepStr
BaseMemoryLibOptDxe
BaseMemoryLibOptPei
PeiMemoryLib
UefiMemoryLib
Copyright (c) 2006 - 2018, Intel ... | MdePkg/Library/BaseMemoryLib/ZeroMemWrapper.c | null | null | null | null | null |
source | edk2 | /** @file
CompareMem() implementation.
The following BaseMemoryLib instances contain the same copy of this file:
BaseMemoryLib
BaseMemoryLibMmx
BaseMemoryLibSse2
BaseMemoryLibRepStr
BaseMemoryLibOptDxe
BaseMemoryLibOptPei
PeiMemoryLib
UefiMemoryLib
Copyright (c) 2006 - 2018, Intel ... | MdePkg/Library/BaseMemoryLibMmx/CompareMemWrapper.c | null | null | null | null | null |
source | edk2 | /** @file
CopyMem() implementation.
The following BaseMemoryLib instances contain the same copy of this file:
BaseMemoryLib
BaseMemoryLibMmx
BaseMemoryLibSse2
BaseMemoryLibRepStr
BaseMemoryLibOptDxe
BaseMemoryLibOptPei
PeiMemoryLib
UefiMemoryLib
Copyright (c) 2006 - 2018, Intel ... | MdePkg/Library/BaseMemoryLibMmx/CopyMemWrapper.c | null | null | null | null | null |
source | edk2 | /** @file
Implementation of GUID functions.
The following BaseMemoryLib instances contain the same copy of this file:
BaseMemoryLib
BaseMemoryLibMmx
BaseMemoryLibSse2
BaseMemoryLibRepStr
BaseMemoryLibOptDxe
BaseMemoryLibOptPei
PeiMemoryLib
UefiMemoryLib
Copyright (c) 2006 - 2018... | MdePkg/Library/BaseMemoryLibMmx/MemLibGuid.c | null | null | null | null | null |
source | edk2 | /** @file
Declaration of internal functions for Base Memory Library.
The following BaseMemoryLib instances contain the same copy of this file:
BaseMemoryLib
BaseMemoryLibMmx
BaseMemoryLibSse2
BaseMemoryLibRepStr
BaseMemoryLibOptDxe
BaseMemoryLibOptPei
Copyright (c) 2006 - 2016, Intel Cor... | MdePkg/Library/BaseMemoryLibMmx/MemLibInternals.h | null | null | null | null | null |
source | edk2 | /** @file
ScanMem32() implementation.
The following BaseMemoryLib instances contain the same copy of this file:
BaseMemoryLib
BaseMemoryLibMmx
BaseMemoryLibSse2
BaseMemoryLibRepStr
BaseMemoryLibOptDxe
BaseMemoryLibOptPei
PeiMemoryLib
UefiMemoryLib
Copyright (c) 2006 - 2018, Intel... | MdePkg/Library/BaseMemoryLibMmx/ScanMem32Wrapper.c | null | null | null | null | null |
source | edk2 | /** @file
ScanMem8() and ScanMemN() implementation.
The following BaseMemoryLib instances contain the same copy of this file:
BaseMemoryLib
BaseMemoryLibMmx
BaseMemoryLibSse2
BaseMemoryLibRepStr
BaseMemoryLibOptDxe
BaseMemoryLibOptPei
PeiMemoryLib
UefiMemoryLib
Copyright (c) 200... | MdePkg/Library/BaseMemoryLibMmx/ScanMem8Wrapper.c | null | null | null | null | null |
source | edk2 | /** @file
Declaration of internal functions for Base Memory Library.
The following BaseMemoryLib instances contain the same copy of this file:
BaseMemoryLib
BaseMemoryLibMmx
BaseMemoryLibSse2
BaseMemoryLibRepStr
BaseMemoryLibOptDxe
BaseMemoryLibOptPei
Copyright (c) 2006 - 2016, Intel Cor... | MdePkg/Library/BaseMemoryLibOptDxe/MemLibInternals.h | null | null | null | null | null |
source | edk2 | //
// Copyright (c) 2016, Linaro Limited
// All rights reserved.
// SPDX-License-Identifier: BSD-2-Clause-Patent
//
.text
.align 5
ASM_GLOBAL ASM_PFX(InternalMemCompareGuid)
ASM_PFX(InternalMemCompareGuid):
AARCH64_BTI(c)
mov x2, xzr
ldp x3, x4, [x0]
cbz x1, 0f
ldp x1, x2, ... | MdePkg/Library/BaseMemoryLibOptDxe/AArch64/CompareGuid.S | null | null | null | null | null |
source | edk2 | //
// Copyright (c) 2013, Linaro Limited
// All rights reserved.
// SPDX-License-Identifier: BSD-2-Clause-Patent
//
// Assumptions:
//
// ARMv8-a, AArch64
//
// Parameters and result.
#define src1 x0
#define src2 x1
#define limit x2
#define result x0
// Internal variables.
#define data1 x3
#def... | MdePkg/Library/BaseMemoryLibOptDxe/AArch64/CompareMem.S | null | null | null | null | null |
source | edk2 | //
// Copyright (c) 2012 - 2016, Linaro Limited
// All rights reserved.
// Copyright (c) 2015 ARM Ltd
// All rights reserved.
// SPDX-License-Identifier: BSD-2-Clause-Patent
//
// Assumptions:
//
// ARMv8-a, AArch64, unaligned accesses.
//
//
#define dstin x0
#define src x1
#define count x2
#define dst ... | MdePkg/Library/BaseMemoryLibOptDxe/AArch64/CopyMem.S | null | null | null | null | null |
source | edk2 | /** @file
Implementation of GUID functions for AARCH64
Copyright (c) 2006 - 2016, Intel Corporation. All rights reserved.<BR>
Copyright (c) 2016, Linaro Ltd. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#include "MemLibInternals.h"
/**
Internal function to compare two GUIDs.
... | MdePkg/Library/BaseMemoryLibOptDxe/AArch64/MemLibGuid.c | null | null | null | null | null |
source | edk2 | //
// Copyright (c) 2014, ARM Limited
// All rights Reserved.
// SPDX-License-Identifier: BSD-2-Clause-Patent
//
// Assumptions:
//
// ARMv8-a, AArch64
// Neon Available.
//
// Arguments and results.
#define srcin x0
#define cntin x1
#define chrin w2
#define result x0
#define src x3
#define tm... | MdePkg/Library/BaseMemoryLibOptDxe/AArch64/ScanMem.S | null | null | null | null | null |
source | edk2 | /** @file
Architecture Independent Base Memory Library Implementation.
The following BaseMemoryLib instances contain the same copy of this file:
BaseMemoryLib
PeiMemoryLib
UefiMemoryLib
Copyright (c) 2006 - 2016, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Pat... | MdePkg/Library/BaseMemoryLibOptDxe/AArch64/ScanMemGeneric.c | null | null | null | null | null |
source | edk2 | //
// Copyright (c) 2012 - 2016, Linaro Limited
// All rights reserved.
// Copyright (c) 2015 ARM Ltd
// All rights reserved.
// SPDX-License-Identifier: BSD-2-Clause-Patent
//
// Assumptions:
//
// ARMv8-a, AArch64, unaligned accesses
//
//
#define dstin x0
#define count x1
#define val x2
#define valw ... | MdePkg/Library/BaseMemoryLibOptDxe/AArch64/SetMem.S | null | null | null | null | null |
source | edk2 | /** @file
Declaration of internal functions for Base Memory Library.
The following BaseMemoryLib instances contain the same copy of this file:
BaseMemoryLib
BaseMemoryLibMmx
BaseMemoryLibSse2
BaseMemoryLibRepStr
BaseMemoryLibOptDxe
BaseMemoryLibOptPei
Copyright (c) 2006 - 2016, Intel Cor... | MdePkg/Library/BaseMemoryLibOptPei/MemLibInternals.h | null | null | null | null | null |
source | edk2 | /** @file
SetMem32() implementation.
The following BaseMemoryLib instances contain the same copy of this file:
BaseMemoryLib
BaseMemoryLibMmx
BaseMemoryLibSse2
BaseMemoryLibRepStr
BaseMemoryLibOptDxe
BaseMemoryLibOptPei
PeiMemoryLib
UefiMemoryLib
Copyright (c) 2006 - 2009, Intel ... | MdePkg/Library/BaseMemoryLibOptPei/SetMem32Wrapper.c | null | null | null | null | null |
source | edk2 | /** @file
Declaration of internal functions for Base Memory Library.
The following BaseMemoryLib instances contain the same copy of this file:
BaseMemoryLib
BaseMemoryLibMmx
BaseMemoryLibSse2
BaseMemoryLibRepStr
BaseMemoryLibOptDxe
BaseMemoryLibOptPei
Copyright (c) 2006 - 2016, Intel Cor... | MdePkg/Library/BaseMemoryLibRepStr/MemLibInternals.h | null | null | null | null | null |
source | edk2 | /** @file
Declaration of internal functions for Base Memory Library.
The following BaseMemoryLib instances contain the same copy of this file:
BaseMemoryLib
BaseMemoryLibMmx
BaseMemoryLibSse2
BaseMemoryLibRepStr
BaseMemoryLibOptDxe
BaseMemoryLibOptPei
Copyright (c) 2006 - 2016, Intel Cor... | MdePkg/Library/BaseMemoryLibSse2/MemLibInternals.h | null | null | null | null | null |
source | edk2 | /** @file
An OrderedCollectionLib instance that provides a red-black tree
implementation, and allocates and releases tree nodes with
MemoryAllocationLib.
This library instance is useful when a fast associative container is needed.
Worst case time complexity is O(log n) for Find(), Next(), Prev(), Min(),
Ma... | MdePkg/Library/BaseOrderedCollectionRedBlackTreeLib/BaseOrderedCollectionRedBlackTreeLib.c | null | null | null | null | null |
source | edk2 | /** @file
A emptry template implementation of PCD Library.
Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#include <Base.h>
#include <Library/DebugLib.h>
#include <Library/PcdLib.h>
#include <Library/BaseMemoryLib.h>
/**
This function... | MdePkg/Library/BasePcdLibNull/PcdLib.c | null | null | null | null | null |
source | edk2 | /** @file
PCI CF8 Library functions that use I/O ports 0xCF8 and 0xCFC to perform PCI Configuration cycles.
Layers on top of an I/O Library instance.
Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#include <Base.h>
#include <Library/Ba... | MdePkg/Library/BasePciCf8Lib/PciCf8Lib.c | null | null | null | null | null |
source | edk2 | /** @file
Functions in this library instance make use of MMIO functions in IoLib to
access memory mapped PCI configuration space.
All assertions for I/O operations are handled in MMIO functions in the IoLib
Library.
Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identi... | MdePkg/Library/BasePciExpressLib/PciExpressLib.c | null | null | null | null | null |
source | edk2 | /** @file
PCI Library functions that use I/O ports 0xCF8 and 0xCFC to perform
PCI Configuration cycles. Layers on top of one PCI CF8 Library instance.
Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#include <Base.h>
#include <Library/P... | MdePkg/Library/BasePciLibCf8/PciLib.c | null | null | null | null | null |
source | edk2 | /** @file
PCI Library functions that use the 256 MB PCI Express MMIO window to perform PCI
Configuration cycles. Layers on PCI Express Library.
Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#include <Base.h>
#include <Library/PciLib.h... | MdePkg/Library/BasePciLibPciExpress/PciLib.c | null | null | null | null | null |
source | edk2 | /** @file
Default PCI Segment Information Library that returns one segment whose
segment base address equals to PcdPciExpressBaseAddress.
Copyright (c) 2017 - 2020, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#include <Base.h>
#include <Library/PciSegmentInfoL... | MdePkg/Library/BasePciSegmentInfoLibNull/PciSegmentInfoLib.c | null | null | null | null | null |
source | edk2 | /** @file
PCI Segment Library that layers on top of the PCI Library which only
supports segment 0 PCI configuration access.
Copyright (c) 2016 - 2017, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#include <Base.h>
#include <Library/BaseLib.h>
#include <Library... | MdePkg/Library/BasePciSegmentLibPci/PciSegmentLib.c | null | null | null | null | null |
source | edk2 | /** @file
Null PE/Coff Extra Action library instances with empty functions.
Copyright (c) 2009 - 2018, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#include <Base.h>
#include <Library/PeCoffExtraActionLib.h>
#include <Library/DebugLib.h>
/**
Performs additiona... | MdePkg/Library/BasePeCoffExtraActionLibNull/PeCoffExtraActionLib.c | null | null | null | null | null |
source | edk2 | /** @file
Provides the services to get the entry point to a PE/COFF image that has either been
loaded into memory or is executing at it's linked address.
Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>
Portions copyright (c) 2008 - 2009, Apple Inc. All rights reserved.<BR>
SPDX-License... | MdePkg/Library/BasePeCoffGetEntryPointLib/PeCoffGetEntryPoint.c | null | null | null | null | null |
source | edk2 | /** @file
Base PE/COFF loader supports loading any PE32/PE32+ or TE image, but
only supports relocating IA32, x64, IPF, RISC-V, LoongArch and EBC images.
Caution: This file requires additional review when modified.
This library will have external input - PE/COFF image.
This external input must be validated c... | MdePkg/Library/BasePeCoffLib/BasePeCoff.c | null | null | null | null | null |
source | edk2 | /** @file
Declaration of internal functions in PE/COFF Lib.
Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.<BR>
Portions Copyright (c) 2020, Hewlett Packard Enterprise Development LP. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#pragma once
#include <Base.h>
... | MdePkg/Library/BasePeCoffLib/BasePeCoffLibInternals.h | null | null | null | null | null |
source | edk2 | /** @file
Specific relocation fixups for none Itanium architecture.
Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#include "BasePeCoffLibInternals.h"
/**
Performs an Itanium-based specific relocation fixup and is a no-op on other
in... | MdePkg/Library/BasePeCoffLib/PeCoffLoaderEx.c | null | null | null | null | null |
source | edk2 | /** @file
PE/Coff loader for LoongArch PE image
Copyright (c) 2022, Loongson Technology Corporation Limited. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#include "BasePeCoffLibInternals.h"
#include <Library/BaseLib.h>
/**
Performs an LoongArch specific relocation fixup and is a... | MdePkg/Library/BasePeCoffLib/LoongArch/PeCoffLoaderEx.c | null | null | null | null | null |
source | edk2 | /** @file
PE/Coff loader for RISC-V PE image
Portions Copyright (c) 2020, Hewlett Packard Enterprise Development LP. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#include "BasePeCoffLibInternals.h"
#include <Library/BaseLib.h>
/**
Performs an RISC-V specific relocation fixup and i... | MdePkg/Library/BasePeCoffLib/RiscV/PeCoffLoaderEx.c | null | null | null | null | null |
source | edk2 | /** @file
Base Performance Library which provides no service.
Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#include <Base.h>
#include <Library/PerformanceLib.h>
#include <Library/DebugLib.h>
#include <Library/PcdLib.h>
/**
Creates a... | MdePkg/Library/BasePerformanceLibNull/PerformanceLib.c | null | null | null | null | null |
source | edk2 | /** @file
The instance of Post Code Library that layers on top of a Debug Library instance.
Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#include <Base.h>
#include <Library/PostCodeLib.h>
#include <Library/DebugLib.h>
#include <Library... | MdePkg/Library/BasePostCodeLibDebug/PostCode.c | null | null | null | null | null |
source | edk2 | /** @file
Post Code Library instance that writes post code values to I/O port 0x80.
Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#include <Base.h>
#include <Library/PostCodeLib.h>
#include <Library/PcdLib.h>
#include <Library/IoLib.h>
... | MdePkg/Library/BasePostCodeLibPort80/PostCode.c | null | null | null | null | null |
source | edk2 | /** @file
Base Print Library instance implementation.
Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>
Portions copyright (c) 2008 - 2009, Apple Inc. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#include "PrintLibInternal.h"
//
// Declare a VA_LIST global v... | MdePkg/Library/BasePrintLib/PrintLib.c | null | null | null | null | null |
source | edk2 | /** @file
Print Library internal worker functions.
Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#include "PrintLibInternal.h"
#define WARNING_STATUS_NUMBER 7
#define ERROR_STATUS_NUMBER 35
//
// Safe print checks
//
#define RSIZE_... | MdePkg/Library/BasePrintLib/PrintLibInternal.c | null | null | null | null | null |
source | edk2 | /** @file
Base Print Library instance Internal Functions definition.
Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#pragma once
#include <Base.h>
#include <Library/PrintLib.h>
#include <Library/BaseLib.h>
#include <Library/DebugLib.h>
#... | MdePkg/Library/BasePrintLib/PrintLibInternal.h | null | null | null | null | null |
source | edk2 | /** @file
Null Base Report Status Code Library instance with empty functions.
Copyright (c) 2009 - 2018, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#include <Base.h>
#include <Library/ReportStatusCodeLib.h>
#include <Library/DebugLib.h>
/**
Converts a status... | MdePkg/Library/BaseReportStatusCodeLibNull/BaseReportStatusCodeLib.c | null | null | null | null | null |
source | edk2 | /** @file
Instance of the SBI ecall library.
It allows calling an SBI function via an ecall from S-Mode.
Copyright (c) 2021-2022, Hewlett Packard Development LP. All rights reserved.<BR>
Copyright (c) 2023, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#incl... | MdePkg/Library/BaseRiscVSbiLib/BaseRiscVSbiLib.c | null | null | null | null | null |
source | edk2 | //------------------------------------------------------------------------------
//
// Make ECALL to SBI
//
// Copyright (c) 2023, Ventana Micro Systems Inc. All rights reserved.<BR>
//
// SPDX-License-Identifier: BSD-2-Clause-Patent
//
//------------------------------------------------------------------------------
#... | MdePkg/Library/BaseRiscVSbiLib/RiscVSbiEcall.S | null | null | null | null | null |
source | edk2 | /** @file
Random number generator services that uses CPU RNG instructions to
provide random numbers.
Copyright (c) 2021, NUVIA Inc. All rights reserved.<BR>
Copyright (c) 2015, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#include <Library/BaseLib.h>
#include <Lib... | MdePkg/Library/BaseRngLib/BaseRng.c | null | null | null | null | null |
source | edk2 | /** @file
Architecture specific interface to RNG functionality.
Copyright (c) 2021, NUVIA Inc. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#pragma once
/**
Generates a 16-bit random number.
@param[out] Rand Buffer pointer to store the 16-bit random value.
@retval TRUE ... | MdePkg/Library/BaseRngLib/BaseRngLibInternals.h | null | null | null | null | null |
source | edk2 | #------------------------------------------------------------------------------
#
# ArmRndr() for AArch64
#
# Copyright (c) 2021, NUVIA Inc. All rights reserved.<BR>
#
# SPDX-License-Identifier: BSD-2-Clause-Patent
#
#------------------------------------------------------------------------------
#include "ArmRng.h"
.... | MdePkg/Library/BaseRngLib/AArch64/ArmRng.S | null | null | null | null | null |
source | edk2 | ;------------------------------------------------------------------------------
;
; ArmRndr() for AArch64
;
; Copyright (c) 2021, NUVIA Inc. All rights reserved.<BR>
;
; SPDX-License-Identifier: BSD-2-Clause-Patent
;
;------------------------------------------------------------------------------
#include "ArmRng.h"
... | MdePkg/Library/BaseRngLib/AArch64/ArmRng.asm | null | null | null | null | null |
source | edk2 | /** @file
Random number generator service that uses the RNDR instruction
to provide pseudorandom numbers.
Copyright (c) 2021, NUVIA Inc. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#pragma once
#include <AArch64/AArch64.h>
/**
Generates a random number using RNDR.
Returns... | MdePkg/Library/BaseRngLib/AArch64/ArmRng.h | null | null | null | null | null |
source | edk2 | /** @file
Random number generator service that uses the RNDR instruction
to provide pseudorandom numbers.
Copyright (c) 2023, Arm Limited. All rights reserved.<BR>
Copyright (c) 2021, NUVIA Inc. All rights reserved.<BR>
Copyright (c) 2015, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifie... | MdePkg/Library/BaseRngLib/AArch64/Rndr.c | null | null | null | null | null |
source | edk2 | #------------------------------------------------------------------------------
#
# Read RNG for LoongArch64
#
# Copyright (c) 2026, Loongson Technology Corporation Limited. All rights reserved.<BR>
#
# SPDX-License-Identifier: BSD-2-Clause-Patent
#
#---------------------------------------------------------------------... | MdePkg/Library/BaseRngLib/LoongArch64/AsmRdRng.S | null | null | null | null | null |
source | edk2 | /** @file
Random number generator services.
Copyright (c) 2026, Loongson Technology Corporation Limited. All rights reserved.<BR>
Copyright (C) 2024 Advanced Micro Devices, Inc. All rights reserved.<BR>
Copyright (c) 2023, Arm Limited. All rights reserved.<BR>
Copyright (c) 2022, Pedro Falcato. All rights reserved.<... | MdePkg/Library/BaseRngLib/LoongArch64/Rng.c | null | null | null | null | null |
source | edk2 | /** @file
Random number generator services that uses RdRand instruction access
to provide high-quality random numbers.
Copyright (C) 2024 Advanced Micro Devices, Inc. All rights reserved.<BR>
Copyright (c) 2023, Arm Limited. All rights reserved.<BR>
Copyright (c) 2022, Pedro Falcato. All rights reserved.<BR>
Copyr... | MdePkg/Library/BaseRngLib/Rand/RdRand.c | null | null | null | null | null |
source | edk2 | /** @file
Random number generator service that uses the SEED instruction
to provide pseudorandom numbers.
Copyright (c) 2024, Rivos, Inc.
Copyright (C) 2025 Advanced Micro Devices, Inc. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#include <Uefi.h>
#include <Library/BaseLib.h>... | MdePkg/Library/BaseRngLib/Riscv/Rng.c | null | null | null | null | null |
source | edk2 | //------------------------------------------------------------------------------
//
// RISC-V cache operation.
//
// Copyright (c) 2024, Rivos Inc. All rights reserved.<BR>
//
// SPDX-License-Identifier: BSD-2-Clause-Patent
//
//------------------------------------------------------------------------------
#include <R... | MdePkg/Library/BaseRngLib/Riscv/Seed.S | null | null | null | null | null |
source | edk2 | /** @file
Null version of Random number generator services.
Copyright (c) 2023, Arm Limited. All rights reserved.<BR>
Copyright (c) 2019, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#include <Uefi.h>
#include <Library/DebugLib.h>
#include <Library/RngLib.h>
#include... | MdePkg/Library/BaseRngLibNull/BaseRngLibNull.c | null | null | null | null | null |
source | edk2 | /** @file
BaseRng Library that uses the TimerLib to provide reasonably random numbers.
Do not use this on a production system.
Copyright (c) Microsoft Corporation.
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#include <Base.h>
#include <Library/BaseLib.h>
#include <Library/DebugLib.h>
#include <Library/Ti... | MdePkg/Library/BaseRngLibTimerLib/RngLibTimer.c | null | null | null | null | null |
source | edk2 | /** @file
Null function implementation for EFI S3 boot script.
Copyright (c) 2007 - 2018, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#include <Base.h>
#include <Library/S3BootScriptLib.h>
/**
Save I/O write to boot script
@param Width the width of the I... | MdePkg/Library/BaseS3BootScriptLibNull/BootScriptLib.c | null | null | null | null | null |
source | edk2 | /** @file
I/O and MMIO Library Services that do I/O and also enable the I/O operatation
to be replayed during an S3 resume.
Copyright (c) 2006 -2018, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#include <Base.h>
#include <Library/S3IoLib.h>
#include <Library... | MdePkg/Library/BaseS3IoLib/S3IoLib.c | null | null | null | null | null |
source | edk2 | /** @file
PCI configuration Library Services that do PCI configuration and also enable
the PCI operations to be replayed during an S3 resume. This library class
maps directly on top of the PciLib class.
Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Cla... | MdePkg/Library/BaseS3PciLib/S3PciLib.c | null | null | null | null | null |
source | edk2 | /** @file
The multiple segments PCI configuration Library Services that carry out
PCI configuration and enable the PCI operations to be replayed during an
S3 resume. This library class maps directly on top of the PciSegmentLib class.
Copyright (c) 2017, Intel Corporation. All rights reserved.<BR>
SPDX-Licens... | MdePkg/Library/BaseS3PciSegmentLib/S3PciSegmentLib.c | null | null | null | null | null |
source | edk2 | /** @file
Smbus Library Services that do SMBus transactions and also enable the operatation
to be replayed during an S3 resume. This library class maps directly on top
of the SmbusLib class.
Copyright (c) 2007 - 2018, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
... | MdePkg/Library/BaseS3SmbusLib/S3SmbusLib.c | null | null | null | null | null |
source | edk2 | /** @file
Stall Services that do stall and also enable the Stall operatation
to be replayed during an S3 resume. This library class maps directly on top
of the Timer class.
Copyright (c) 2007 - 2018, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#include <Bas... | MdePkg/Library/BaseS3StallLib/S3StallLib.c | null | null | null | null | null |
source | edk2 | /** @file
This library provides helper functions to prevent integer overflow during
type conversion, addition, subtraction, and multiplication.
Copyright (c) 2017, Microsoft Corporation
All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#include <Base.h>
#include <Library/SafeIntLib.h>
... | MdePkg/Library/BaseSafeIntLib/SafeIntLib.c | null | null | null | null | null |
source | edk2 | /** @file
This library provides helper functions to prevent integer overflow during
type conversion, addition, subtraction, and multiplication.
Copyright (c) 2017, Microsoft Corporation
All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#include <Base.h>
#include <Library/SafeIntLib.h>
... | MdePkg/Library/BaseSafeIntLib/SafeIntLib32.c | null | null | null | null | null |
source | edk2 | /** @file
This library provides helper functions to prevent integer overflow during
type conversion, addition, subtraction, and multiplication.
Copyright (c) 2017, Microsoft Corporation
All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#include <Base.h>
#include <Library/SafeIntLib.h>
... | MdePkg/Library/BaseSafeIntLib/SafeIntLib64.c | null | null | null | null | null |
source | edk2 | /** @file
This library provides helper functions to prevent integer overflow during
type conversion, addition, subtraction, and multiplication.
Copyright (c) 2017, Microsoft Corporation
All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#include <Base.h>
#include <Library/SafeIntLib.h>
... | MdePkg/Library/BaseSafeIntLib/SafeIntLibEbc.c | null | null | null | null | null |
source | edk2 | /** @file
Null Serial Port library instance with empty functions.
Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#include <Base.h>
#include <Library/SerialPortLib.h>
/**
Initialize the serial device hardware.
If no initialization is... | MdePkg/Library/BaseSerialPortLibNull/BaseSerialPortLibNull.c | 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.