OvmfPkg QemuFwCfgLib: Convert Ia32/IoLibExAsm.asm to NASM

The BaseTools/Scripts/ConvertMasmToNasm.py script was used to convert
Ia32/IoLibExAsm.asm to Ia32/IoLibExAsm.nasm

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>

git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16289 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
Jordan Justen 2014-10-31 20:54:41 +00:00 committed by jljusten
parent ad8ae98d2f
commit 8a2976125d
4 changed files with 7 additions and 68 deletions

View File

@ -1,52 +0,0 @@
#------------------------------------------------------------------------------
#
# Copyright (c) 2006 - 2013, 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 Size,
# IN VOID *Buffer
# );
#------------------------------------------------------------------------------
ASM_GLOBAL ASM_PFX(IoReadFifo8)
ASM_PFX(IoReadFifo8):
movw 4(%esp), %dx
movl 8(%esp), %ecx
pushl %edi
movl 16(%esp), %edi
rep insb
popl %edi
ret
#------------------------------------------------------------------------------
# VOID
# EFIAPI
# IoWriteFifo8 (
# IN UINTN Port,
# IN UINTN Size,
# IN VOID *Buffer
# );
#------------------------------------------------------------------------------
ASM_GLOBAL ASM_PFX(IoWriteFifo8)
ASM_PFX(IoWriteFifo8):
movw 4(%esp), %dx
movl 8(%esp), %ecx
pushl %esi
movl 16(%esp), %esi
rep outsb
popl %esi
ret

View File

@ -11,9 +11,7 @@
;
;------------------------------------------------------------------------------
.586P
.model flat,C
.code
SECTION .text
;------------------------------------------------------------------------------
; VOID
@ -24,7 +22,8 @@
; IN VOID *Buffer
; );
;------------------------------------------------------------------------------
IoReadFifo8 PROC
global ASM_PFX(IoReadFifo8)
ASM_PFX(IoReadFifo8):
mov dx, [esp + 4]
mov ecx, [esp + 8]
@ -34,9 +33,6 @@ rep insb
pop edi
ret
IoReadFifo8 ENDP
;------------------------------------------------------------------------------
; VOID
; EFIAPI
@ -46,7 +42,8 @@ IoReadFifo8 ENDP
; IN VOID *Buffer
; );
;------------------------------------------------------------------------------
IoWriteFifo8 PROC
global ASM_PFX(IoWriteFifo8)
ASM_PFX(IoWriteFifo8):
mov dx, [esp + 4]
mov ecx, [esp + 8]
@ -56,7 +53,3 @@ rep outsb
pop esi
ret
IoWriteFifo8 ENDP
END

View File

@ -36,8 +36,7 @@
QemuFwCfgPeiDxe.c
[Sources.IA32]
Ia32/IoLibExAsm.asm
Ia32/IoLibExAsm.S
Ia32/IoLibExAsm.nasm
[Sources.X64]
X64/IoLibExAsm.asm

View File

@ -34,8 +34,7 @@
QemuFwCfgSec.c
[Sources.IA32]
Ia32/IoLibExAsm.asm
Ia32/IoLibExAsm.S
Ia32/IoLibExAsm.nasm
[Sources.X64]
X64/IoLibExAsm.asm