diff options
Diffstat (limited to 'roms/edk2/MdePkg/Library/BaseLib/X64/WriteIdtr.nasm')
-rw-r--r-- | roms/edk2/MdePkg/Library/BaseLib/X64/WriteIdtr.nasm | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/roms/edk2/MdePkg/Library/BaseLib/X64/WriteIdtr.nasm b/roms/edk2/MdePkg/Library/BaseLib/X64/WriteIdtr.nasm new file mode 100644 index 000000000..c6155c018 --- /dev/null +++ b/roms/edk2/MdePkg/Library/BaseLib/X64/WriteIdtr.nasm @@ -0,0 +1,35 @@ +;------------------------------------------------------------------------------
+;
+; Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.<BR>
+; SPDX-License-Identifier: BSD-2-Clause-Patent
+;
+; Module Name:
+;
+; WriteIdtr.Asm
+;
+; Abstract:
+;
+; AsmWriteIdtr function
+;
+; Notes:
+;
+;------------------------------------------------------------------------------
+
+ DEFAULT REL
+ SECTION .text
+
+;------------------------------------------------------------------------------
+; VOID
+; EFIAPI
+; InternalX86WriteIdtr (
+; IN CONST IA32_DESCRIPTOR *Idtr
+; );
+;------------------------------------------------------------------------------
+global ASM_PFX(InternalX86WriteIdtr)
+ASM_PFX(InternalX86WriteIdtr):
+ pushfq
+ cli
+ lidt [rcx]
+ popfq
+ ret
+
|