summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJordan Justen <jordan.l.justen@intel.com>2016-05-30 18:52:05 -0700
committerLiming Gao <liming.gao@intel.com>2016-06-28 09:50:17 +0800
commit5401d5befff087ebda8acec9875000f5d2d90497 (patch)
tree213783a4bc05d49b1e0c0a3e430865689f29bbde
parent63a21006e665ed49265c67438e066ae6188d07d2 (diff)
downloadedk2-5401d5befff087ebda8acec9875000f5d2d90497.tar.gz
edk2-5401d5befff087ebda8acec9875000f5d2d90497.tar.bz2
edk2-5401d5befff087ebda8acec9875000f5d2d90497.zip
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 <jordan.l.justen@intel.com>
-rw-r--r--MdePkg/Library/BaseLib/BaseLib.inf2
-rw-r--r--MdePkg/Library/BaseLib/X64/ReadEflags.nasm39
2 files changed, 41 insertions, 0 deletions
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.<BR>
+; 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
+