From 8a63e4e9ecdbdca0563a51afe1626745c8f2f46a Mon Sep 17 00:00:00 2001 From: Jordan Justen Date: Mon, 30 May 2016 18:52:03 -0700 Subject: [PATCH] MdePkg BaseLib: Convert X64/ReadEs.asm to NASM The BaseTools/Scripts/ConvertMasmToNasm.py script was used to convert X64/ReadEs.asm to X64/ReadEs.nasm Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jordan Justen --- MdePkg/Library/BaseLib/BaseLib.inf | 2 ++ MdePkg/Library/BaseLib/X64/ReadEs.nasm | 38 ++++++++++++++++++++++++++ 2 files changed, 40 insertions(+) create mode 100644 MdePkg/Library/BaseLib/X64/ReadEs.nasm diff --git a/MdePkg/Library/BaseLib/BaseLib.inf b/MdePkg/Library/BaseLib/BaseLib.inf index 49610c7950..2e7acc2ffe 100644 --- a/MdePkg/Library/BaseLib/BaseLib.inf +++ b/MdePkg/Library/BaseLib/BaseLib.inf @@ -529,6 +529,7 @@ X64/ReadGs.asm | MSFT X64/ReadFs.nasm| MSFT X64/ReadFs.asm | MSFT + X64/ReadEs.nasm| MSFT X64/ReadEs.asm | MSFT X64/ReadDs.asm | MSFT X64/ReadCs.asm | MSFT @@ -643,6 +644,7 @@ X64/ReadGs.asm | INTEL X64/ReadFs.nasm| INTEL X64/ReadFs.asm | INTEL + X64/ReadEs.nasm| INTEL X64/ReadEs.asm | INTEL X64/ReadDs.asm | INTEL X64/ReadCs.asm | INTEL diff --git a/MdePkg/Library/BaseLib/X64/ReadEs.nasm b/MdePkg/Library/BaseLib/X64/ReadEs.nasm new file mode 100644 index 0000000000..c03545802a --- /dev/null +++ b/MdePkg/Library/BaseLib/X64/ReadEs.nasm @@ -0,0 +1,38 @@ +;------------------------------------------------------------------------------ +; +; 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: +; +; ReadEs.Asm +; +; Abstract: +; +; AsmReadEs function +; +; Notes: +; +;------------------------------------------------------------------------------ + + DEFAULT REL + SECTION .text + +;------------------------------------------------------------------------------ +; UINT16 +; EFIAPI +; AsmReadEs ( +; VOID +; ); +;------------------------------------------------------------------------------ +global ASM_PFX(AsmReadEs) +ASM_PFX(AsmReadEs): + mov eax, es + ret + -- 2.39.2