From cb44f80afc97f46cb0d5add7c03a0aa5da89a19f Mon Sep 17 00:00:00 2001 From: Jordan Justen Date: Mon, 30 May 2016 18:51:59 -0700 Subject: [PATCH] MdePkg BaseLib: Convert Ia32/EnableDisableInterrupts.asm to NASM The BaseTools/Scripts/ConvertMasmToNasm.py script was used to convert Ia32/EnableDisableInterrupts.asm to Ia32/EnableDisableInterrupts.nasm Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jordan Justen --- MdePkg/Library/BaseLib/BaseLib.inf | 2 + .../BaseLib/Ia32/EnableDisableInterrupts.nasm | 38 +++++++++++++++++++ 2 files changed, 40 insertions(+) create mode 100644 MdePkg/Library/BaseLib/Ia32/EnableDisableInterrupts.nasm diff --git a/MdePkg/Library/BaseLib/BaseLib.inf b/MdePkg/Library/BaseLib/BaseLib.inf index 57375d6870..718009b7f5 100644 --- a/MdePkg/Library/BaseLib/BaseLib.inf +++ b/MdePkg/Library/BaseLib/BaseLib.inf @@ -319,6 +319,7 @@ Ia32/EnablePaging32.asm | INTEL Ia32/EnableInterrupts.nasm| INTEL Ia32/EnableInterrupts.asm | INTEL + Ia32/EnableDisableInterrupts.nasm| INTEL Ia32/EnableDisableInterrupts.asm | INTEL Ia32/DivU64x64Remainder.nasm| INTEL Ia32/DivU64x64Remainder.asm | INTEL @@ -343,6 +344,7 @@ Ia32/GccInline.c | GCC Ia32/Thunk16.nasm | GCC Ia32/Thunk16.S | XCODE + Ia32/EnableDisableInterrupts.nasm| GCC Ia32/EnableDisableInterrupts.S | GCC Ia32/EnablePaging64.nasm| GCC Ia32/EnablePaging64.S | GCC diff --git a/MdePkg/Library/BaseLib/Ia32/EnableDisableInterrupts.nasm b/MdePkg/Library/BaseLib/Ia32/EnableDisableInterrupts.nasm new file mode 100644 index 0000000000..7b206757bd --- /dev/null +++ b/MdePkg/Library/BaseLib/Ia32/EnableDisableInterrupts.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: +; +; EnableDisableInterrupts.Asm +; +; Abstract: +; +; EnableDisableInterrupts function +; +; Notes: +; +;------------------------------------------------------------------------------ + + SECTION .text + +;------------------------------------------------------------------------------ +; VOID +; EFIAPI +; EnableDisableInterrupts ( +; VOID +; ); +;------------------------------------------------------------------------------ +global ASM_PFX(_EnableDisableInterrupts) +ASM_PFX(_EnableDisableInterrupts): + sti + cli + ret + -- 2.39.2