mirror of https://github.com/acidanthera/audk.git
OvmfPkg PciHostBridgeDxe: Convert Ia32/IoFifo.asm to NASM
The BaseTools/Scripts/ConvertMasmToNasm.py script was used to convert Ia32/IoFifo.asm to Ia32/IoFifo.nasm Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jordan Justen <jordan.l.justen@intel.com> Cc: Laszlo Ersek <lersek@redhat.com> Reviewed-by: Laszlo Ersek <lersek@redhat.com>
This commit is contained in:
parent
43ca17532b
commit
6026bf4600
|
@ -1,134 +0,0 @@
|
|||
#------------------------------------------------------------------------------
|
||||
#
|
||||
# Copyright (c) 2006 - 2012, 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.
|
||||
#
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# VOID
|
||||
# EFIAPI
|
||||
# IoReadFifo8 (
|
||||
# IN UINTN Port,
|
||||
# IN UINTN Count,
|
||||
# IN VOID *Buffer
|
||||
# );
|
||||
#------------------------------------------------------------------------------
|
||||
ASM_GLOBAL ASM_PFX(IoReadFifo8)
|
||||
ASM_PFX(IoReadFifo8):
|
||||
push %edi
|
||||
cld
|
||||
movw 8(%esp), %dx
|
||||
mov 12(%esp), %ecx
|
||||
mov 16(%esp), %edi
|
||||
rep insb
|
||||
pop %edi
|
||||
ret
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# VOID
|
||||
# EFIAPI
|
||||
# IoReadFifo16 (
|
||||
# IN UINTN Port,
|
||||
# IN UINTN Count,
|
||||
# IN VOID *Buffer
|
||||
# );
|
||||
#------------------------------------------------------------------------------
|
||||
ASM_GLOBAL ASM_PFX(IoReadFifo16)
|
||||
ASM_PFX(IoReadFifo16):
|
||||
push %edi
|
||||
cld
|
||||
movw 8(%esp), %dx
|
||||
mov 12(%esp), %ecx
|
||||
mov 16(%esp), %edi
|
||||
rep insw
|
||||
pop %edi
|
||||
ret
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# VOID
|
||||
# EFIAPI
|
||||
# IoReadFifo32 (
|
||||
# IN UINTN Port,
|
||||
# IN UINTN Count,
|
||||
# IN VOID *Buffer
|
||||
# );
|
||||
#------------------------------------------------------------------------------
|
||||
ASM_GLOBAL ASM_PFX(IoReadFifo32)
|
||||
ASM_PFX(IoReadFifo32):
|
||||
push %edi
|
||||
cld
|
||||
movw 8(%esp), %dx
|
||||
mov 12(%esp), %ecx
|
||||
mov 16(%esp), %edi
|
||||
rep insl
|
||||
pop %edi
|
||||
ret
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# VOID
|
||||
# EFIAPI
|
||||
# IoWriteFifo8 (
|
||||
# IN UINTN Port,
|
||||
# IN UINTN Count,
|
||||
# IN VOID *Buffer
|
||||
# );
|
||||
#------------------------------------------------------------------------------
|
||||
ASM_GLOBAL ASM_PFX(IoWriteFifo8)
|
||||
ASM_PFX(IoWriteFifo8):
|
||||
push %esi
|
||||
cld
|
||||
movw 8(%esp), %dx
|
||||
mov 12(%esp), %ecx
|
||||
mov 16(%esp), %esi
|
||||
rep outsb
|
||||
pop %esi
|
||||
ret
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# VOID
|
||||
# EFIAPI
|
||||
# IoWriteFifo16 (
|
||||
# IN UINTN Port,
|
||||
# IN UINTN Count,
|
||||
# IN VOID *Buffer
|
||||
# );
|
||||
#------------------------------------------------------------------------------
|
||||
ASM_GLOBAL ASM_PFX(IoWriteFifo16)
|
||||
ASM_PFX(IoWriteFifo16):
|
||||
push %esi
|
||||
cld
|
||||
movw 8(%esp), %dx
|
||||
mov 12(%esp), %ecx
|
||||
mov 16(%esp), %esi
|
||||
rep outsw
|
||||
pop %esi
|
||||
ret
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# VOID
|
||||
# EFIAPI
|
||||
# IoWriteFifo32 (
|
||||
# IN UINTN Port,
|
||||
# IN UINTN Count,
|
||||
# IN VOID *Buffer
|
||||
# );
|
||||
#------------------------------------------------------------------------------
|
||||
ASM_GLOBAL ASM_PFX(IoWriteFifo32)
|
||||
ASM_PFX(IoWriteFifo32):
|
||||
push %esi
|
||||
cld
|
||||
movw 8(%esp), %dx
|
||||
mov 12(%esp), %ecx
|
||||
mov 16(%esp), %esi
|
||||
rep outsl
|
||||
pop %esi
|
||||
ret
|
||||
|
|
@ -12,9 +12,7 @@
|
|||
;
|
||||
;------------------------------------------------------------------------------
|
||||
|
||||
.586P
|
||||
.model flat,C
|
||||
.code
|
||||
SECTION .text
|
||||
|
||||
;------------------------------------------------------------------------------
|
||||
; VOID
|
||||
|
@ -25,7 +23,8 @@
|
|||
; IN VOID *Buffer
|
||||
; );
|
||||
;------------------------------------------------------------------------------
|
||||
IoReadFifo8 PROC
|
||||
global ASM_PFX(IoReadFifo8)
|
||||
ASM_PFX(IoReadFifo8):
|
||||
push edi
|
||||
cld
|
||||
mov dx, [esp + 8]
|
||||
|
@ -34,7 +33,6 @@ IoReadFifo8 PROC
|
|||
rep insb
|
||||
pop edi
|
||||
ret
|
||||
IoReadFifo8 ENDP
|
||||
|
||||
;------------------------------------------------------------------------------
|
||||
; VOID
|
||||
|
@ -45,7 +43,8 @@ IoReadFifo8 ENDP
|
|||
; IN VOID *Buffer
|
||||
; );
|
||||
;------------------------------------------------------------------------------
|
||||
IoReadFifo16 PROC
|
||||
global ASM_PFX(IoReadFifo16)
|
||||
ASM_PFX(IoReadFifo16):
|
||||
push edi
|
||||
cld
|
||||
mov dx, [esp + 8]
|
||||
|
@ -54,7 +53,6 @@ IoReadFifo16 PROC
|
|||
rep insw
|
||||
pop edi
|
||||
ret
|
||||
IoReadFifo16 ENDP
|
||||
|
||||
;------------------------------------------------------------------------------
|
||||
; VOID
|
||||
|
@ -65,7 +63,8 @@ IoReadFifo16 ENDP
|
|||
; IN VOID *Buffer
|
||||
; );
|
||||
;------------------------------------------------------------------------------
|
||||
IoReadFifo32 PROC
|
||||
global ASM_PFX(IoReadFifo32)
|
||||
ASM_PFX(IoReadFifo32):
|
||||
push edi
|
||||
cld
|
||||
mov dx, [esp + 8]
|
||||
|
@ -74,7 +73,6 @@ IoReadFifo32 PROC
|
|||
rep insd
|
||||
pop edi
|
||||
ret
|
||||
IoReadFifo32 ENDP
|
||||
|
||||
;------------------------------------------------------------------------------
|
||||
; VOID
|
||||
|
@ -85,7 +83,8 @@ IoReadFifo32 ENDP
|
|||
; IN VOID *Buffer
|
||||
; );
|
||||
;------------------------------------------------------------------------------
|
||||
IoWriteFifo8 PROC
|
||||
global ASM_PFX(IoWriteFifo8)
|
||||
ASM_PFX(IoWriteFifo8):
|
||||
push esi
|
||||
cld
|
||||
mov dx, [esp + 8]
|
||||
|
@ -94,7 +93,6 @@ IoWriteFifo8 PROC
|
|||
rep outsb
|
||||
pop esi
|
||||
ret
|
||||
IoWriteFifo8 ENDP
|
||||
|
||||
;------------------------------------------------------------------------------
|
||||
; VOID
|
||||
|
@ -105,7 +103,8 @@ IoWriteFifo8 ENDP
|
|||
; IN VOID *Buffer
|
||||
; );
|
||||
;------------------------------------------------------------------------------
|
||||
IoWriteFifo16 PROC
|
||||
global ASM_PFX(IoWriteFifo16)
|
||||
ASM_PFX(IoWriteFifo16):
|
||||
push esi
|
||||
cld
|
||||
mov dx, [esp + 8]
|
||||
|
@ -114,7 +113,6 @@ IoWriteFifo16 PROC
|
|||
rep outsw
|
||||
pop esi
|
||||
ret
|
||||
IoWriteFifo16 ENDP
|
||||
|
||||
;------------------------------------------------------------------------------
|
||||
; VOID
|
||||
|
@ -125,7 +123,8 @@ IoWriteFifo16 ENDP
|
|||
; IN VOID *Buffer
|
||||
; );
|
||||
;------------------------------------------------------------------------------
|
||||
IoWriteFifo32 PROC
|
||||
global ASM_PFX(IoWriteFifo32)
|
||||
ASM_PFX(IoWriteFifo32):
|
||||
push esi
|
||||
cld
|
||||
mov dx, [esp + 8]
|
||||
|
@ -134,7 +133,4 @@ IoWriteFifo32 PROC
|
|||
rep outsd
|
||||
pop esi
|
||||
ret
|
||||
IoWriteFifo32 ENDP
|
||||
|
||||
END
|
||||
|
|
@ -49,8 +49,7 @@
|
|||
IoFifo.h
|
||||
|
||||
[Sources.IA32]
|
||||
Ia32/IoFifo.asm
|
||||
Ia32/IoFifo.S
|
||||
Ia32/IoFifo.nasm
|
||||
|
||||
[Sources.X64]
|
||||
X64/IoFifo.asm
|
||||
|
|
Loading…
Reference in New Issue