ubee: floppy driver write fix
authorAlan Cox <alan@linux.intel.com>
Fri, 9 Feb 2018 23:41:22 +0000 (23:41 +0000)
committerAlan Cox <alan@linux.intel.com>
Fri, 9 Feb 2018 23:41:22 +0000 (23:41 +0000)
Kernel/platform-ubee/floppy.s

index 3252a37..26f3bc4 100644 (file)
@@ -238,6 +238,12 @@ fdio_out1:
        jr      z, fdio_out1
        outi                            ; Stuff byte into FDC while we think
        jr      nz,fdio_out1
+fdio_out2:
+       in      a, (FDCREG)             ; Wait for DRQ (or error)
+       and     e
+       jr      z, fdio_out2
+       outi                            ; Stuff byte into FDC while we think
+       jr      nz,fdio_out2
 fdio_nmiout:
 ;
 ;      Now tidy up