mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-24 22:24:37 +02:00
MdePkg BaseLib: Convert Ia32/Mwait.asm to NASM
The BaseTools/Scripts/ConvertMasmToNasm.py script was used to convert Ia32/Mwait.asm to Ia32/Mwait.nasm Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
This commit is contained in:
parent
85b5a2e881
commit
c3a324ff87
@ -291,6 +291,7 @@
|
|||||||
Ia32/ReadCr2.asm | INTEL
|
Ia32/ReadCr2.asm | INTEL
|
||||||
Ia32/ReadCr0.nasm| INTEL
|
Ia32/ReadCr0.nasm| INTEL
|
||||||
Ia32/ReadCr0.asm | INTEL
|
Ia32/ReadCr0.asm | INTEL
|
||||||
|
Ia32/Mwait.nasm| INTEL
|
||||||
Ia32/Mwait.asm | INTEL
|
Ia32/Mwait.asm | INTEL
|
||||||
Ia32/Monitor.asm | INTEL
|
Ia32/Monitor.asm | INTEL
|
||||||
Ia32/ModU64x32.asm | INTEL
|
Ia32/ModU64x32.asm | INTEL
|
||||||
@ -334,6 +335,7 @@
|
|||||||
Ia32/EnablePaging64.S | GCC
|
Ia32/EnablePaging64.S | GCC
|
||||||
Ia32/DisablePaging32.S | GCC
|
Ia32/DisablePaging32.S | GCC
|
||||||
Ia32/EnablePaging32.S | GCC
|
Ia32/EnablePaging32.S | GCC
|
||||||
|
Ia32/Mwait.nasm| GCC
|
||||||
Ia32/Mwait.S | GCC
|
Ia32/Mwait.S | GCC
|
||||||
Ia32/Monitor.S | GCC
|
Ia32/Monitor.S | GCC
|
||||||
Ia32/CpuIdEx.S | GCC
|
Ia32/CpuIdEx.S | GCC
|
||||||
|
40
MdePkg/Library/BaseLib/Ia32/Mwait.nasm
Normal file
40
MdePkg/Library/BaseLib/Ia32/Mwait.nasm
Normal file
@ -0,0 +1,40 @@
|
|||||||
|
;------------------------------------------------------------------------------
|
||||||
|
;
|
||||||
|
; 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:
|
||||||
|
;
|
||||||
|
; Mwait.Asm
|
||||||
|
;
|
||||||
|
; Abstract:
|
||||||
|
;
|
||||||
|
; AsmMwait function
|
||||||
|
;
|
||||||
|
; Notes:
|
||||||
|
;
|
||||||
|
;------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
SECTION .text
|
||||||
|
|
||||||
|
;------------------------------------------------------------------------------
|
||||||
|
; UINTN
|
||||||
|
; EFIAPI
|
||||||
|
; AsmMwait (
|
||||||
|
; IN UINTN Eax,
|
||||||
|
; IN UINTN Ecx
|
||||||
|
; );
|
||||||
|
;------------------------------------------------------------------------------
|
||||||
|
global ASM_PFX(AsmMwait)
|
||||||
|
ASM_PFX(AsmMwait):
|
||||||
|
mov eax, [esp + 4]
|
||||||
|
mov ecx, [esp + 8]
|
||||||
|
DB 0xf, 1, 0xc9 ; mwait
|
||||||
|
ret
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user