summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--MdePkg/Library/BaseLib/BaseLib.inf3
-rw-r--r--MdePkg/Library/BaseLib/X64/EnableDisableInterrupts.nasm39
2 files changed, 42 insertions, 0 deletions
diff --git a/MdePkg/Library/BaseLib/BaseLib.inf b/MdePkg/Library/BaseLib/BaseLib.inf
index c5f45ee3bb..fabc0e2e71 100644
--- a/MdePkg/Library/BaseLib/BaseLib.inf
+++ b/MdePkg/Library/BaseLib/BaseLib.inf
@@ -451,6 +451,7 @@
X64/RdRand.asm | MSFT
X64/CpuPause.nasm| MSFT
X64/CpuPause.asm | MSFT
+ X64/EnableDisableInterrupts.nasm| MSFT
X64/EnableDisableInterrupts.asm | MSFT
X64/DisableInterrupts.asm | MSFT
X64/EnableInterrupts.asm | MSFT
@@ -526,6 +527,7 @@
X64/RdRand.asm | INTEL
X64/CpuPause.nasm| INTEL
X64/CpuPause.asm | INTEL
+ X64/EnableDisableInterrupts.nasm| INTEL
X64/EnableDisableInterrupts.asm | INTEL
X64/DisableInterrupts.asm | INTEL
X64/EnableInterrupts.asm | INTEL
@@ -620,6 +622,7 @@
X64/SetJump.S | GCC
X64/LongJump.nasm| GCC
X64/LongJump.S | GCC
+ X64/EnableDisableInterrupts.nasm| GCC
X64/EnableDisableInterrupts.S | GCC
X64/DisablePaging64.S | GCC
X64/CpuId.nasm| GCC
diff --git a/MdePkg/Library/BaseLib/X64/EnableDisableInterrupts.nasm b/MdePkg/Library/BaseLib/X64/EnableDisableInterrupts.nasm
new file mode 100644
index 0000000000..861d519a91
--- /dev/null
+++ b/MdePkg/Library/BaseLib/X64/EnableDisableInterrupts.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:
+;
+; EnableDisableInterrupts.Asm
+;
+; Abstract:
+;
+; EnableDisableInterrupts function
+;
+; Notes:
+;
+;------------------------------------------------------------------------------
+
+ DEFAULT REL
+ SECTION .text
+
+;------------------------------------------------------------------------------
+; VOID
+; EFIAPI
+; EnableDisableInterrupts (
+; VOID
+; );
+;------------------------------------------------------------------------------
+global ASM_PFX(EnableDisableInterrupts)
+ASM_PFX(EnableDisableInterrupts):
+ sti
+ cli
+ ret
+