From: Jordan Justen Date: Tue, 31 May 2016 01:52:05 +0000 (-0700) Subject: MdePkg BaseLib: Convert X64/ReadEflags.asm to NASM X-Git-Tag: edk2-stable201903~6611 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=5401d5befff087ebda8acec9875000f5d2d90497;p=mirror_edk2.git MdePkg BaseLib: Convert X64/ReadEflags.asm to NASM The BaseTools/Scripts/ConvertMasmToNasm.py script was used to convert X64/ReadEflags.asm to X64/ReadEflags.nasm Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jordan Justen --- 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 +