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
AsmFxRestore function
Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#include "BaseLibInternals.h"
/**
Restores the current floating point/SSE/SSE2 context from a buffer.
Restores the current floating point/SSE/SSE2 state ... | MdePkg/Library/BaseLib/Ia32/FxRestore.c | null | null | null | null | null |
source | edk2 | /** @file
AsmFxSave function
Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#include "BaseLibInternals.h"
/**
Save the current floating point/SSE/SSE2 context to a buffer.
Saves the current floating point/SSE/SSE2 state to the buffe... | MdePkg/Library/BaseLib/Ia32/FxSave.c | 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/Ia32/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/Ia32/GccInlinePriv.c | null | null | null | null | null |
source | edk2 | /** @file
SwitchStack() function for IA-32.
Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#include "BaseLibInternals.h"
/**
Transfers control to a function starting with a new stack.
Transfers control to the function specified by E... | MdePkg/Library/BaseLib/Ia32/InternalSwitchStack.c | null | null | null | null | null |
source | edk2 | /** @file
AsmInvd function
Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
/**
Executes a INVD instruction.
Executes a INVD instruction. This function is only available on IA-32 and
x64.
**/
VOID
EFIAPI
AsmInvd (
VOID
)
{
_as... | MdePkg/Library/BaseLib/Ia32/Invd.c | null | null | null | null | null |
source | edk2 | /** @file
64-bit left rotation for Ia32
Copyright (c) 2006 - 2015, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
/**
Rotates a 64-bit integer left between 0 and 63 bits, filling
the low bits with the high bits that were rotated.
This function rotates the 64... | MdePkg/Library/BaseLib/Ia32/LRotU64.c | null | null | null | null | null |
source | edk2 | /** @file
64-bit left shift function for IA-32.
Copyright (c) 2006 - 2015, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
/**
Shifts a 64-bit integer left between 0 and 63 bits. The low bits
are filled with zeros. The shifted value is returned.
This function... | MdePkg/Library/BaseLib/Ia32/LShiftU64.c | null | null | null | null | null |
source | edk2 | /** @file
Calculate the remainder of a 64-bit integer by a 32-bit integer
Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
/**
Divides a 64-bit unsigned integer by a 32-bit unsigned integer and
generates a 32-bit unsigned remainder.
... | MdePkg/Library/BaseLib/Ia32/ModU64x32.c | null | null | null | null | null |
source | edk2 | /** @file
AsmMonitor function
Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
/**
Sets up a monitor buffer that is used by AsmMwait().
Executes a MONITOR instruction with the register state specified by Eax, Ecx
and Edx. Returns Eax... | MdePkg/Library/BaseLib/Ia32/Monitor.c | null | null | null | null | null |
source | edk2 | /** @file
Calculate the product of a 64-bit integer and a 32-bit integer
Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
/**
Multiples a 64-bit unsigned integer by a 32-bit unsigned integer
and generates a 64-bit unsigned result.
Th... | MdePkg/Library/BaseLib/Ia32/MultU64x32.c | null | null | null | null | null |
source | edk2 | /** @file
Calculate the product of a 64-bit integer and another 64-bit integer
Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
/**
Multiplies a 64-bit unsigned integer by a 64-bit unsigned integer
and generates a 64-bit unsigned result... | MdePkg/Library/BaseLib/Ia32/MultU64x64.c | null | null | null | null | null |
source | edk2 | /** @file
AsmMwait function
Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
/**
Executes an MWAIT instruction.
Executes an MWAIT instruction with the register state specified by Eax and
Ecx. Returns Eax. This function is only availa... | MdePkg/Library/BaseLib/Ia32/Mwait.c | null | null | null | null | null |
source | edk2 | /** @file
Non-existing BaseLib functions on Ia32
Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#include <Library/DebugLib.h>
/**
Disables the 64-bit paging mode on the CPU.
Disables the 64-bit paging mode on the CPU and returns to ... | MdePkg/Library/BaseLib/Ia32/Non-existing.c | null | null | null | null | null |
source | edk2 | /** @file
64-bit right rotation for Ia32
Copyright (c) 2006 - 2015, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
/**
Rotates a 64-bit integer right between 0 and 63 bits, filling
the high bits with the high low bits that were rotated.
This function rotates... | MdePkg/Library/BaseLib/Ia32/RRotU64.c | null | null | null | null | null |
source | edk2 | /** @file
64-bit logical right shift function for IA-32
Copyright (c) 2006 - 2015, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
/**
Shifts a 64-bit integer right between 0 and 63 bits. This high bits
are filled with zeros. The shifted value is returned.
Th... | MdePkg/Library/BaseLib/Ia32/RShiftU64.c | null | null | null | null | null |
source | edk2 | /** @file
AsmReadCr0 function
Copyright (c) 2006 - 2014, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
/**
Reads the current value of the Control Register 0 (CR0).
Reads and returns the current value of CR0. This function is only available
on IA-32 and x64.... | MdePkg/Library/BaseLib/Ia32/ReadCr0.c | null | null | null | null | null |
source | edk2 | /** @file
AsmReadCr2 function
Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
/**
Reads the current value of the Control Register 2 (CR2).
Reads and returns the current value of CR2. This function is only available
on IA-32 and x64.... | MdePkg/Library/BaseLib/Ia32/ReadCr2.c | null | null | null | null | null |
source | edk2 | /** @file
AsmReadCr3 function
Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
/**
Reads the current value of the Control Register 3 (CR3).
Reads and returns the current value of CR3. This function is only available
on IA-32 and x64.... | MdePkg/Library/BaseLib/Ia32/ReadCr3.c | null | null | null | null | null |
source | edk2 | /** @file
AsmReadCr4 function
Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
/**
Reads the current value of the Control Register 4 (CR4).
Reads and returns the current value of CR4. This function is only available
on IA-32 and x64.... | MdePkg/Library/BaseLib/Ia32/ReadCr4.c | null | null | null | null | null |
source | edk2 | /** @file
AsmReadCs function
Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
/**
Reads the current value of Code Segment Register (CS).
Reads and returns the current value of CS. This function is only available on
IA-32 and x64.
... | MdePkg/Library/BaseLib/Ia32/ReadCs.c | null | null | null | null | null |
source | edk2 | /** @file
AsmReadDr0 function
Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
/**
Reads the current value of Debug Register 0 (DR0).
Reads and returns the current value of DR0. This function is only available
on IA-32 and x64. This ... | MdePkg/Library/BaseLib/Ia32/ReadDr0.c | null | null | null | null | null |
source | edk2 | /** @file
AsmReadDr1 function
Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
/**
Reads the current value of Debug Register 1 (DR1).
Reads and returns the current value of DR1. This function is only available
on IA-32 and x64. This ... | MdePkg/Library/BaseLib/Ia32/ReadDr1.c | null | null | null | null | null |
source | edk2 | /** @file
AsmReadDr2 function
Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
/**
Reads the current value of Debug Register 2 (DR2).
Reads and returns the current value of DR2. This function is only available
on IA-32 and x64. This ... | MdePkg/Library/BaseLib/Ia32/ReadDr2.c | null | null | null | null | null |
source | edk2 | /** @file
AsmReadDr3 function
Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
/**
Reads the current value of Debug Register 3 (DR3).
Reads and returns the current value of DR3. This function is only available
on IA-32 and x64. This ... | MdePkg/Library/BaseLib/Ia32/ReadDr3.c | null | null | null | null | null |
source | edk2 | /** @file
AsmReadDr4 function
Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
/**
Reads the current value of Debug Register 4 (DR4).
Reads and returns the current value of DR4. This function is only available
on IA-32 and x64. This ... | MdePkg/Library/BaseLib/Ia32/ReadDr4.c | null | null | null | null | null |
source | edk2 | /** @file
AsmReadDr5 function
Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
/**
Reads the current value of Debug Register 5 (DR5).
Reads and returns the current value of DR5. This function is only available
on IA-32 and x64. This ... | MdePkg/Library/BaseLib/Ia32/ReadDr5.c | null | null | null | null | null |
source | edk2 | /** @file
AsmReadDr6 function
Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
/**
Reads the current value of Debug Register 6 (DR6).
Reads and returns the current value of DR6. This function is only available
on IA-32 and x64. This ... | MdePkg/Library/BaseLib/Ia32/ReadDr6.c | null | null | null | null | null |
source | edk2 | /** @file
AsmReadDr7 function
Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
/**
Reads the current value of Debug Register 7 (DR7).
Reads and returns the current value of DR7. This function is only available
on IA-32 and x64. This ... | MdePkg/Library/BaseLib/Ia32/ReadDr7.c | null | null | null | null | null |
source | edk2 | /** @file
AsmReadDs function
Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
/**
Reads the current value of Data Segment Register (DS).
Reads and returns the current value of DS. This function is only available on
IA-32 and x64.
... | MdePkg/Library/BaseLib/Ia32/ReadDs.c | null | null | null | null | null |
source | edk2 | /** @file
AsmReadEflags function
Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
/**
Reads the current value of the EFLAGS register.
Reads and returns the current value of the EFLAGS register. This function is
only available on IA-3... | MdePkg/Library/BaseLib/Ia32/ReadEflags.c | null | null | null | null | null |
source | edk2 | /** @file
AsmReadEs function
Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
/**
Reads the current value of ES Data Segment Register (ES).
Reads and returns the current value of ES. This function is only available on
IA-32 and x64.
... | MdePkg/Library/BaseLib/Ia32/ReadEs.c | null | null | null | null | null |
source | edk2 | /** @file
AsmReadFs function
Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
/**
Reads the current value of FS Data Segment Register (FS).
Reads and returns the current value of FS. This function is only available on
IA-32 and x64.
... | MdePkg/Library/BaseLib/Ia32/ReadFs.c | null | null | null | null | null |
source | edk2 | /** @file
AsmReadGdtr function
Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#include "BaseLibInternals.h"
/**
Reads the current Global Descriptor Table Register(GDTR) descriptor.
Reads and returns the current GDTR descriptor and r... | MdePkg/Library/BaseLib/Ia32/ReadGdtr.c | null | null | null | null | null |
source | edk2 | /** @file
AsmReadGs function
Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
/**
Reads the current value of GS Data Segment Register (GS).
Reads and returns the current value of GS. This function is only available on
IA-32 and x64.
... | MdePkg/Library/BaseLib/Ia32/ReadGs.c | null | null | null | null | null |
source | edk2 | /** @file
AsmReadIdtr function
Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#include "BaseLibInternals.h"
/**
Reads the current Interrupt Descriptor Table Register(GDTR) descriptor.
Reads and returns the current IDTR descriptor an... | MdePkg/Library/BaseLib/Ia32/ReadIdtr.c | null | null | null | null | null |
source | edk2 | /** @file
AsmReadLdtr function
Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
/**
Reads the current Local Descriptor Table Register(LDTR) selector.
Reads and returns the current 16-bit LDTR descriptor value. This function is
only a... | MdePkg/Library/BaseLib/Ia32/ReadLdtr.c | null | null | null | null | null |
source | edk2 | /** @file
AsmReadMm0 function
Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
/**
Reads the current value of 64-bit MMX Register #0 (MM0).
Reads and returns the current value of MM0. This function is only available
on IA-32 and x64.... | MdePkg/Library/BaseLib/Ia32/ReadMm0.c | null | null | null | null | null |
source | edk2 | /** @file
AsmReadMm1 function
Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
/**
Reads the current value of 64-bit MMX Register #1 (MM1).
Reads and returns the current value of MM1. This function is only available
on IA-32 and x64.... | MdePkg/Library/BaseLib/Ia32/ReadMm1.c | null | null | null | null | null |
source | edk2 | /** @file
AsmReadMm2 function
Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
/**
Reads the current value of 64-bit MMX Register #2 (MM2).
Reads and returns the current value of MM2. This function is only available
on IA-32 and x64.... | MdePkg/Library/BaseLib/Ia32/ReadMm2.c | null | null | null | null | null |
source | edk2 | /** @file
AsmReadMm3 function
Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
/**
Reads the current value of 64-bit MMX Register #3 (MM3).
Reads and returns the current value of MM3. This function is only available
on IA-32 and x64.... | MdePkg/Library/BaseLib/Ia32/ReadMm3.c | null | null | null | null | null |
source | edk2 | /** @file
AsmReadMm4 function
Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
/**
Reads the current value of 64-bit MMX Register #4 (MM4).
Reads and returns the current value of MM4. This function is only available
on IA-32 and x64.... | MdePkg/Library/BaseLib/Ia32/ReadMm4.c | null | null | null | null | null |
source | edk2 | /** @file
AsmReadMm5 function
Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
/**
Reads the current value of 64-bit MMX Register #5 (MM5).
Reads and returns the current value of MM5. This function is only available
on IA-32 and x64.... | MdePkg/Library/BaseLib/Ia32/ReadMm5.c | null | null | null | null | null |
source | edk2 | /** @file
AsmReadMm6 function
Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
/**
Reads the current value of 64-bit MMX Register #6 (MM6).
Reads and returns the current value of MM6. This function is only available
on IA-32 and x64.... | MdePkg/Library/BaseLib/Ia32/ReadMm6.c | null | null | null | null | null |
source | edk2 | /** @file
AsmReadMm7 function
Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
/**
Reads the current value of 64-bit MMX Register #7 (MM7).
Reads and returns the current value of MM7. This function is only available
on IA-32 and x64.... | MdePkg/Library/BaseLib/Ia32/ReadMm7.c | null | null | null | null | null |
source | edk2 | /** @file
AsmReadMsr64 function
Copyright (c) 2006 - 2021, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#include <Library/RegisterFilterLib.h>
/**
Returns a 64-bit Machine Specific Register(MSR).
Reads and returns the 64-bit MSR specified by Index. No param... | MdePkg/Library/BaseLib/Ia32/ReadMsr64.c | null | null | null | null | null |
source | edk2 | /** @file
AsmReadPmc function
Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
/**
Reads the current value of a Performance Counter (PMC).
Reads and returns the current value of performance counter specified by
Index. This function i... | MdePkg/Library/BaseLib/Ia32/ReadPmc.c | null | null | null | null | null |
source | edk2 | /** @file
AsmReadSs function
Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
/**
Reads the current value of Stack Segment Register (SS).
Reads and returns the current value of SS. This function is only available on
IA-32 and x64.
... | MdePkg/Library/BaseLib/Ia32/ReadSs.c | null | null | null | null | null |
source | edk2 | /** @file
AsmReadTr function
Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
/**
Reads the current value of Task Register (TR).
Reads and returns the current value of TR. This function is only available on
IA-32 and x64.
@return ... | MdePkg/Library/BaseLib/Ia32/ReadTr.c | null | null | null | null | null |
source | edk2 | /** @file
AsmReadTsc function
Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
/**
Reads the current value of Time Stamp Counter (TSC).
Reads and returns the current value of TSC. This function is only available
on IA-32 and x64.
... | MdePkg/Library/BaseLib/Ia32/ReadTsc.c | null | null | null | null | null |
source | edk2 | /** @file
Implementation of 64-bit swap bytes
Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
/**
Switches the endianess of a 64-bit integer.
This function swaps the bytes in a 64-bit unsigned value to switch the value
from little e... | MdePkg/Library/BaseLib/Ia32/SwapBytes64.c | null | null | null | null | null |
source | edk2 | /** @file
AsmWbinvd function
Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
/**
Executes a WBINVD instruction.
Executes a WBINVD instruction. This function is only available on IA-32 and
x64.
**/
VOID
EFIAPI
AsmWbinvd (
VOID
)... | MdePkg/Library/BaseLib/Ia32/Wbinvd.c | null | null | null | null | null |
source | edk2 | /** @file
AsmWriteCr0 function
Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
/**
Writes a value to Control Register 0 (CR0).
Writes and returns a new value to CR0. This function is only available on
IA-32 and x64. This writes a 32... | MdePkg/Library/BaseLib/Ia32/WriteCr0.c | null | null | null | null | null |
source | edk2 | /** @file
AsmWriteCr2 function
Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
/**
Writes a value to Control Register 2 (CR2).
Writes and returns a new value to CR2. This function is only available on
IA-32 and x64. This writes a 32... | MdePkg/Library/BaseLib/Ia32/WriteCr2.c | null | null | null | null | null |
source | edk2 | /** @file
AsmWriteCr3 function
Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
/**
Writes a value to Control Register 3 (CR3).
Writes and returns a new value to CR3. This function is only available on
IA-32 and x64. This writes a 32... | MdePkg/Library/BaseLib/Ia32/WriteCr3.c | null | null | null | null | null |
source | edk2 | /** @file
AsmWriteCr4 function
Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
/**
Writes a value to Control Register 4 (CR4).
Writes and returns a new value to CR4. This function is only available on
IA-32 and x64. This writes a 32... | MdePkg/Library/BaseLib/Ia32/WriteCr4.c | null | null | null | null | null |
source | edk2 | /** @file
AsmWriteDr0 function
Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
/**
Writes a value to Debug Register 0 (DR0).
Writes and returns a new value to DR0. This function is only available on
IA-32 and x64. This writes a 32-b... | MdePkg/Library/BaseLib/Ia32/WriteDr0.c | null | null | null | null | null |
source | edk2 | /** @file
AsmWriteDr1 function
Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
/**
Writes a value to Debug Register 1 (DR1).
Writes and returns a new value to DR1. This function is only available on
IA-32 and x64. This writes a 32-b... | MdePkg/Library/BaseLib/Ia32/WriteDr1.c | null | null | null | null | null |
source | edk2 | /** @file
AsmWriteDr2 function
Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
/**
Writes a value to Debug Register 2 (DR2).
Writes and returns a new value to DR2. This function is only available on
IA-32 and x64. This writes a 32-b... | MdePkg/Library/BaseLib/Ia32/WriteDr2.c | null | null | null | null | null |
source | edk2 | /** @file
AsmWriteDr3 function
Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
/**
Writes a value to Debug Register 3 (DR3).
Writes and returns a new value to DR3. This function is only available on
IA-32 and x64. This writes a 32-b... | MdePkg/Library/BaseLib/Ia32/WriteDr3.c | null | null | null | null | null |
source | edk2 | /** @file
AsmWriteDr4 function
Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
/**
Writes a value to Debug Register 4 (DR4).
Writes and returns a new value to DR4. This function is only available on
IA-32 and x64. This writes a 32-b... | MdePkg/Library/BaseLib/Ia32/WriteDr4.c | null | null | null | null | null |
source | edk2 | /** @file
AsmWriteDr5 function
Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
/**
Writes a value to Debug Register 5 (DR5).
Writes and returns a new value to DR5. This function is only available on
IA-32 and x64. This writes a 32-b... | MdePkg/Library/BaseLib/Ia32/WriteDr5.c | null | null | null | null | null |
source | edk2 | /** @file
AsmWriteDr6 function
Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
/**
Writes a value to Debug Register 6 (DR6).
Writes and returns a new value to DR6. This function is only available on
IA-32 and x64. This writes a 32-b... | MdePkg/Library/BaseLib/Ia32/WriteDr6.c | null | null | null | null | null |
source | edk2 | /** @file
AsmWriteDr7 function
Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
/**
Writes a value to Debug Register 7 (DR7).
Writes and returns a new value to DR7. This function is only available on
IA-32 and x64. This writes a 32-b... | MdePkg/Library/BaseLib/Ia32/WriteDr7.c | null | null | null | null | null |
source | edk2 | /** @file
AsmWriteGdtr function
Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#include "BaseLibInternals.h"
/**
Writes the current Global Descriptor Table Register (GDTR) descriptor.
Writes and the current GDTR descriptor specified... | MdePkg/Library/BaseLib/Ia32/WriteGdtr.c | null | null | null | null | null |
source | edk2 | /** @file
AsmWriteIdtr function
Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#include "BaseLibInternals.h"
/**
Writes the current Interrupt Descriptor Table Register(GDTR) descriptor.
Writes the current IDTR descriptor and returns... | MdePkg/Library/BaseLib/Ia32/WriteIdtr.c | null | null | null | null | null |
source | edk2 | /** @file
AsmWriteLdtr function
Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
/**
Writes the current Local Descriptor Table Register (GDTR) selector.
Writes and the current LDTR descriptor specified by Ldtr. This function is
only ... | MdePkg/Library/BaseLib/Ia32/WriteLdtr.c | null | null | null | null | null |
source | edk2 | /** @file
AsmWriteMm0 function
Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
/**
Writes the current value of 64-bit MMX Register #0 (MM0).
Writes the current value of MM0. This function is only available on IA32 and
x64.
@param... | MdePkg/Library/BaseLib/Ia32/WriteMm0.c | null | null | null | null | null |
source | edk2 | /** @file
AsmWriteMm1 function
Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
/**
Writes the current value of 64-bit MMX Register #1 (MM1).
Writes the current value of MM1. This function is only available on IA32 and
x64.
@param... | MdePkg/Library/BaseLib/Ia32/WriteMm1.c | null | null | null | null | null |
source | edk2 | /** @file
AsmWriteMm2 function
Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
/**
Writes the current value of 64-bit MMX Register #2 (MM2).
Writes the current value of MM2. This function is only available on IA32 and
x64.
@param... | MdePkg/Library/BaseLib/Ia32/WriteMm2.c | null | null | null | null | null |
source | edk2 | /** @file
AsmWriteMm3 function
Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
/**
Writes the current value of 64-bit MMX Register #3 (MM3).
Writes the current value of MM3. This function is only available on IA32 and
x64.
@param... | MdePkg/Library/BaseLib/Ia32/WriteMm3.c | null | null | null | null | null |
source | edk2 | /** @file
AsmWriteMm4 function
Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
/**
Writes the current value of 64-bit MMX Register #4 (MM4).
Writes the current value of MM4. This function is only available on IA32 and
x64.
@param... | MdePkg/Library/BaseLib/Ia32/WriteMm4.c | null | null | null | null | null |
source | edk2 | /** @file
AsmWriteMm5 function
Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
/**
Writes the current value of 64-bit MMX Register #5 (MM5).
Writes the current value of MM5. This function is only available on IA32 and
x64.
@param... | MdePkg/Library/BaseLib/Ia32/WriteMm5.c | null | null | null | null | null |
source | edk2 | /** @file
AsmWriteMm6 function
Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
/**
Writes the current value of 64-bit MMX Register #6 (MM6).
Writes the current value of MM6. This function is only available on IA32 and
x64.
@param... | MdePkg/Library/BaseLib/Ia32/WriteMm6.c | null | null | null | null | null |
source | edk2 | /** @file
AsmWriteMm7 function
Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
/**
Writes the current value of 64-bit MMX Register #7 (MM7).
Writes the current value of MM7. This function is only available on IA32 and
x64.
@param... | MdePkg/Library/BaseLib/Ia32/WriteMm7.c | null | null | null | null | null |
source | edk2 | /** @file
AsmWriteMsr64 function
Copyright (c) 2006 - 2021, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#include <Library/RegisterFilterLib.h>
/**
Writes a 64-bit value to a Machine Specific Register(MSR), and returns the
value.
Writes the 64-bit value s... | MdePkg/Library/BaseLib/Ia32/WriteMsr64.c | null | null | null | null | null |
source | edk2 | #------------------------------------------------------------------------------
#
# LoongArch ASM CSR operation functions
#
# Copyright (c) 2024, Loongson Technology Corporation Limited. All rights reserved.<BR>
#
# SPDX-License-Identifier: BSD-2-Clause-Patent
#
#--------------------------------------------------------... | MdePkg/Library/BaseLib/LoongArch64/AsmCsr.S | null | null | null | null | null |
source | edk2 | #------------------------------------------------------------------------------
#
# LoongArch Barrier Operations
#
# Copyright (c) 2022, Loongson Technology Corporation Limited. All rights reserved.<BR>
#
# SPDX-License-Identifier: BSD-2-Clause-Patent
#
#-----------------------------------------------------------------... | MdePkg/Library/BaseLib/LoongArch64/Barrier.S | null | null | null | null | null |
source | edk2 | #------------------------------------------------------------------------------
#
# CpuBreakpoint for LoongArch
#
# Copyright (c) 2022, Loongson Technology Corporation Limited. All rights reserved.<BR>
#
# SPDX-License-Identifier: BSD-2-Clause-Patent
#
#------------------------------------------------------------------... | MdePkg/Library/BaseLib/LoongArch64/CpuBreakpoint.S | null | null | null | null | null |
source | edk2 | #------------------------------------------------------------------------------
#
# CpuPause for LoongArch
#
# Copyright (c) 2022, Loongson Technology Corporation Limited. All rights reserved.<BR>
#
# SPDX-License-Identifier: BSD-2-Clause-Patent
#
#-----------------------------------------------------------------------... | MdePkg/Library/BaseLib/LoongArch64/CpuPause.S | null | null | null | null | null |
source | edk2 | #------------------------------------------------------------------------------
#
# AsmCpucfg for LoongArch
#
# Copyright (c) 2024, Loongson Technology Corporation Limited. All rights reserved.<BR>
#
# SPDX-License-Identifier: BSD-2-Clause-Patent
#
#----------------------------------------------------------------------... | MdePkg/Library/BaseLib/LoongArch64/Cpucfg.S | null | null | null | null | null |
source | edk2 | /** @file
LoongArch CSR operation functions.
Copyright (c) 2024, Loongson Technology Corporation Limited. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
UINTN
AsmCsrRead (
IN UINT16 Select
);
UINTN
AsmCsrWrite (
IN UINT16 Select,
IN UINTN Value
);
UINTN
AsmCsrXChg (
... | MdePkg/Library/BaseLib/LoongArch64/Csr.c | null | null | null | null | null |
source | edk2 | #------------------------------------------------------------------------------
#
# LoongArch interrupt disable operations
#
# Copyright (c) 2024, Loongson Technology Corporation Limited. All rights reserved.<BR>
#
# SPDX-License-Identifier: BSD-2-Clause-Patent
#
#-------------------------------------------------------... | MdePkg/Library/BaseLib/LoongArch64/DisableInterrupts.S | null | null | null | null | null |
source | edk2 | #------------------------------------------------------------------------------
#
# LoongArch interrupt enable operations
#
# Copyright (c) 2024, Loongson Technology Corporation Limited. All rights reserved.<BR>
#
# SPDX-License-Identifier: BSD-2-Clause-Patent
#
#--------------------------------------------------------... | MdePkg/Library/BaseLib/LoongArch64/EnableInterrupts.S | null | null | null | null | null |
source | edk2 | #------------------------------------------------------------------------------
#
# LoongArch set exception base address operations
#
# Copyright (c) 2024, Loongson Technology Corporation Limited. All rights reserved.<BR>
#
# SPDX-License-Identifier: BSD-2-Clause-Patent
#
#----------------------------------------------... | MdePkg/Library/BaseLib/LoongArch64/ExceptionBase.S | null | null | null | null | null |
source | edk2 | #------------------------------------------------------------------------------
#
# Get LoongArch interrupt status
#
# Copyright (c) 2022, Loongson Technology Corporation Limited. All rights reserved.<BR>
#
# SPDX-License-Identifier: BSD-2-Clause-Patent
#
#---------------------------------------------------------------... | MdePkg/Library/BaseLib/LoongArch64/GetInterruptState.S | null | null | null | null | null |
source | edk2 | /** @file
SwitchStack() function for LoongArch.
Copyright (c) 2022, Loongson Technology Corporation Limited. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#include "BaseLibInternals.h"
UINTN
EFIAPI
InternalSwitchStackAsm (
IN BASE_LIBRARY_JUMP_BUFFER *JumpBuffer
);
/**
... | MdePkg/Library/BaseLib/LoongArch64/InternalSwitchStack.c | null | null | null | null | null |
source | edk2 | #------------------------------------------------------------------------------
#
# LoongArch ASM IO CSR operation functions
#
# Copyright (c) 2024, Loongson Technology Corporation Limited. All rights reserved.<BR>
#
# SPDX-License-Identifier: BSD-2-Clause-Patent
#
#-----------------------------------------------------... | MdePkg/Library/BaseLib/LoongArch64/IoCsr.S | null | null | null | null | null |
source | edk2 | #------------------------------------------------------------------------------
#
# MemoryFence() for LoongArch
#
# Copyright (c) 2022, Loongson Technology Corporation Limited. All rights reserved.<BR>
#
# SPDX-License-Identifier: BSD-2-Clause-Patent
#
#------------------------------------------------------------------... | MdePkg/Library/BaseLib/LoongArch64/MemoryFence.S | null | null | null | null | null |
source | edk2 | #------------------------------------------------------------------------------
#
# LoongArch Read Stable Counter
#
# Copyright (c) 2024, Loongson Technology Corporation Limited. All rights reserved.<BR>
#
# SPDX-License-Identifier: BSD-2-Clause-Patent
#
#----------------------------------------------------------------... | MdePkg/Library/BaseLib/LoongArch64/ReadStableCounter.S | null | null | null | null | null |
source | edk2 | #------------------------------------------------------------------------------
#
# Set/Long jump for LoongArch
#
# Copyright (c) 2022, Loongson Technology Corporation Limited. All rights reserved.<BR>
#
# SPDX-License-Identifier: BSD-2-Clause-Patent
#
#------------------------------------------------------------------... | MdePkg/Library/BaseLib/LoongArch64/SetJumpLongJump.S | null | null | null | null | null |
source | edk2 | #------------------------------------------------------------------------------
#
# InternalSwitchStackAsm for LoongArch
#
# Copyright (c) 2022, Loongson Technology Corporation Limited. All rights reserved.<BR>
#
# SPDX-License-Identifier: BSD-2-Clause-Patent
#
#---------------------------------------------------------... | MdePkg/Library/BaseLib/LoongArch64/SwitchStack.S | null | null | null | null | null |
source | edk2 | /** @file
CPU breakpoint for RISC-V
Copyright (c) 2020, Hewlett Packard Enterprise Development LP. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#include "BaseLibInternals.h"
extern VOID
RiscVCpuBreakpoint (
VOID
);
/**
Generates a breakpoint on the CPU.
Generates a break... | MdePkg/Library/BaseLib/RiscV64/CpuBreakpoint.c | null | null | null | null | null |
source | edk2 | /** @file
CPU pause for RISC-V
Copyright (c) 2020, Hewlett Packard Enterprise Development LP. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#include "BaseLibInternals.h"
extern VOID
RiscVCpuPause (
VOID
);
/**
Requests CPU to pause for a short period of time.
Requests CPU... | MdePkg/Library/BaseLib/RiscV64/CpuPause.c | 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/CpuScratch.S | null | null | null | null | null |
source | edk2 | /** @file
CPU disable interrupt function for RISC-V
Copyright (c) 2020, Hewlett Packard Enterprise Development LP. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#include "BaseLibInternals.h"
extern VOID
RiscVDisableSupervisorModeInterrupts (
VOID
);
/**
Disables CPU interrupt... | MdePkg/Library/BaseLib/RiscV64/DisableInterrupts.c | null | null | null | null | null |
source | edk2 | /** @file
CPU enable interrupt function for RISC-V
Copyright (c) 2020, Hewlett Packard Enterprise Development LP. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#include "BaseLibInternals.h"
extern VOID
RiscVEnableSupervisorModeInterrupt (
VOID
);
/**
Enables CPU interrupts.
... | MdePkg/Library/BaseLib/RiscV64/EnableInterrupts.c | null | null | null | null | null |
source | edk2 | /** @file
CPU get interrupt state function for RISC-V
Copyright (c) 2020, Hewlett Packard Enterprise Development LP. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#include "BaseLibInternals.h"
extern UINT32
RiscVGetSupervisorModeInterrupts (
VOID
);
/**
Retrieves the current... | MdePkg/Library/BaseLib/RiscV64/GetInterruptState.c | null | null | null | null | null |
source | edk2 | /** @file
Switch stack function for RISC-V
Copyright (c) 2020, Hewlett Packard Enterprise Development LP. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#include "BaseLibInternals.h"
/**
Transfers control to a function starting with a new stack.
This internal worker function tr... | MdePkg/Library/BaseLib/RiscV64/InternalSwitchStack.c | null | null | null | null | null |
source | edk2 | //------------------------------------------------------------------------------
//
// MemoryFence() for RiscV64
//
// Copyright (c) 2021, Hewlett Packard Enterprise Development. All rights reserved.
//
// SPDX-License-Identifier: BSD-2-Clause-Patent
//
//----------------------------------------------------------------... | MdePkg/Library/BaseLib/RiscV64/MemoryFence.S | 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.