summaryrefslogtreecommitdiff
path: root/MdePkg
diff options
context:
space:
mode:
authorJordan Justen <jordan.l.justen@intel.com>2016-05-30 18:52:02 -0700
committerLiming Gao <liming.gao@intel.com>2016-06-28 09:49:54 +0800
commit20bd7f342f527fae191e6a3198f6a4017f540def (patch)
tree32cd003acd500d0ebb6ebbc0030fd94bce052a8e /MdePkg
parent8cf392dd88a17bdf7270536bde9255563d92ad98 (diff)
downloadedk2-platforms-20bd7f342f527fae191e6a3198f6a4017f540def.tar.xz
MdePkg BaseLib: Convert X64/ReadIdtr.asm to NASM
The BaseTools/Scripts/ConvertMasmToNasm.py script was used to convert X64/ReadIdtr.asm to X64/ReadIdtr.nasm Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
Diffstat (limited to 'MdePkg')
-rw-r--r--MdePkg/Library/BaseLib/BaseLib.inf2
-rw-r--r--MdePkg/Library/BaseLib/X64/ReadIdtr.nasm38
2 files changed, 40 insertions, 0 deletions
diff --git a/MdePkg/Library/BaseLib/BaseLib.inf b/MdePkg/Library/BaseLib/BaseLib.inf
index f2b8f4bf8b..3de83e96e4 100644
--- a/MdePkg/Library/BaseLib/BaseLib.inf
+++ b/MdePkg/Library/BaseLib/BaseLib.inf
@@ -515,6 +515,7 @@
X64/ReadLdtr.asm | MSFT
X64/WriteIdtr.nasm| MSFT
X64/WriteIdtr.asm | MSFT
+ X64/ReadIdtr.nasm| MSFT
X64/ReadIdtr.asm | MSFT
X64/WriteGdtr.asm | MSFT
X64/ReadGdtr.asm | MSFT
@@ -622,6 +623,7 @@
X64/ReadLdtr.asm | INTEL
X64/WriteIdtr.nasm| INTEL
X64/WriteIdtr.asm | INTEL
+ X64/ReadIdtr.nasm| INTEL
X64/ReadIdtr.asm | INTEL
X64/WriteGdtr.asm | INTEL
X64/ReadGdtr.asm | INTEL
diff --git a/MdePkg/Library/BaseLib/X64/ReadIdtr.nasm b/MdePkg/Library/BaseLib/X64/ReadIdtr.nasm
new file mode 100644
index 0000000000..94bdadee6f
--- /dev/null
+++ b/MdePkg/Library/BaseLib/X64/ReadIdtr.nasm
@@ -0,0 +1,38 @@
+;------------------------------------------------------------------------------
+;
+; 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:
+;
+; ReadIdtr.Asm
+;
+; Abstract:
+;
+; AsmReadIdtr function
+;
+; Notes:
+;
+;------------------------------------------------------------------------------
+
+ DEFAULT REL
+ SECTION .text
+
+;------------------------------------------------------------------------------
+; VOID
+; EFIAPI
+; InternalX86ReadIdtr (
+; OUT IA32_DESCRIPTOR *Idtr
+; );
+;------------------------------------------------------------------------------
+global ASM_PFX(InternalX86ReadIdtr)
+ASM_PFX(InternalX86ReadIdtr):
+ sidt [rcx]
+ ret
+