From f6488daf7ad7864ca42cda3255f5fba0b8a69ea9 Mon Sep 17 00:00:00 2001 From: Alan Cox Date: Fri, 9 Feb 2018 23:41:22 +0000 Subject: [PATCH] ubee: floppy driver write fix --- Kernel/platform-ubee/floppy.s | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Kernel/platform-ubee/floppy.s b/Kernel/platform-ubee/floppy.s index 3252a370..26f3bc4c 100644 --- a/Kernel/platform-ubee/floppy.s +++ b/Kernel/platform-ubee/floppy.s @@ -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 -- 2.34.1