]> git.proxmox.com Git - mirror_edk2.git/blobdiff - OvmfPkg/Library/QemuFwCfgLib/X64/IoLibExAsm.asm
OvmfPkg QemuFwCfgLib: Convert Ia32/IoLibExAsm.asm to NASM
[mirror_edk2.git] / OvmfPkg / Library / QemuFwCfgLib / X64 / IoLibExAsm.asm
index c60ad2c5d4486f90aeb578f0b6fc69b8ece1948d..47ac158f851bd37198680d21e40cc5ba86780d93 100644 (file)
@@ -1,6 +1,6 @@
 ;------------------------------------------------------------------------------\r
 ;\r
-; Copyright (c) 2006 - 2012, Intel Corporation. All rights reserved.<BR>\r
+; Copyright (c) 2006 - 2013, Intel Corporation. All rights reserved.<BR>\r
 ; This program and the accompanying materials\r
 ; are licensed and made available under the terms and conditions of the BSD License\r
 ; which accompanies this distribution.  The full text of the license may be found at\r
@@ -32,5 +32,25 @@ rep insb
 \r
 IoReadFifo8 ENDP\r
 \r
+\r
+;------------------------------------------------------------------------------\r
+;  VOID\r
+;  EFIAPI\r
+;  IoWriteFifo8 (\r
+;    IN UINTN                  Port,              // rcx\r
+;    IN UINTN                  Size,              // rdx\r
+;    IN VOID                   *Buffer            // r8\r
+;    );\r
+;------------------------------------------------------------------------------\r
+IoWriteFifo8 PROC\r
+\r
+    xchg    rcx, rdx\r
+    xchg    rsi, r8             ; rdi: buffer address; r8: save rdi\r
+rep outsb\r
+    mov     rsi, r8             ; restore rdi\r
+    ret\r
+\r
+IoWriteFifo8 ENDP\r
+\r
     END\r
 \r