diff --git a/MdePkg/Library/BaseLib/BaseLib.inf b/MdePkg/Library/BaseLib/BaseLib.inf index 98f721a040..5d53ffba4a 100644 --- a/MdePkg/Library/BaseLib/BaseLib.inf +++ b/MdePkg/Library/BaseLib/BaseLib.inf @@ -583,6 +583,7 @@ X64/ReadCr2.asm | MSFT X64/ReadCr0.nasm| MSFT X64/ReadCr0.asm | MSFT + X64/ReadEflags.nasm| MSFT X64/ReadEflags.asm | MSFT X64/CpuBreakpoint.asm | INTEL @@ -724,6 +725,7 @@ X64/ReadCr2.asm | INTEL X64/ReadCr0.nasm| INTEL X64/ReadCr0.asm | INTEL + X64/ReadEflags.nasm| INTEL X64/ReadEflags.asm | INTEL X64/Non-existing.c diff --git a/MdePkg/Library/BaseLib/X64/ReadEflags.nasm b/MdePkg/Library/BaseLib/X64/ReadEflags.nasm new file mode 100644 index 0000000000..3272caeb01 --- /dev/null +++ b/MdePkg/Library/BaseLib/X64/ReadEflags.nasm @@ -0,0 +1,39 @@ +;------------------------------------------------------------------------------ +; +; Copyright (c) 2006, Intel Corporation. All rights reserved.
+; This program and the accompanying materials +; are licensed and made available under the terms and conditions of the BSD License +; which accompanies this distribution. The full text of the license may be found at +; http://opensource.org/licenses/bsd-license.php. +; +; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, +; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. +; +; Module Name: +; +; ReadEflags.Asm +; +; Abstract: +; +; AsmReadEflags function +; +; Notes: +; +;------------------------------------------------------------------------------ + + DEFAULT REL + SECTION .text + +;------------------------------------------------------------------------------ +; UINTN +; EFIAPI +; AsmReadEflags ( +; VOID +; ); +;------------------------------------------------------------------------------ +global ASM_PFX(AsmReadEflags) +ASM_PFX(AsmReadEflags): + pushfq + pop rax + ret +