PATCH: floppy dma corruption under 2.1.79+

Shaw Carruthers (shaw@shawc.demon.co.uk)
Sat, 14 Feb 1998 11:24:11 +0000 (GMT)


Here is a patch which I think fixes this problem. Could knowledgeable folk
proofread and test this.

I am not competent to attempt to fix the assembler version, so the patch
turns this off.

--- /usr/src/linux-2.1.86/include/asm-i386/floppy.h.orig Sat Feb 14 02:36:05 1998
+++ /usr/src/linux-2.1.86/include/asm-i386/floppy.h Sat Feb 14 11:13:49 1998
@@ -60,7 +60,7 @@
register unsigned char st;

#undef TRACE_FLPY_INT
-#undef NO_FLOPPY_ASSEMBLER
+#define NO_FLOPPY_ASSEMBLER

#ifdef TRACE_FLPY_INT
static int calls=0;
@@ -123,10 +123,10 @@
outb_p(*lptr, virtual_dma_port+5);
else
*lptr = inb_p(virtual_dma_port+5);
- st = inb(virtual_dma_port+4);
}
virtual_dma_count = lcount;
virtual_dma_addr = lptr;
+ st = inb(virtual_dma_port+4);
}
#endif

@@ -223,7 +223,7 @@
_CROSS_64KB(addr, size, 0))
use_virtual_dma = 1;
else
- use_virtual_dma = 1;
+ use_virtual_dma = 0;
} else {
use_virtual_dma = can_use_virtual_dma & 1;
}

--
Shaw Carruthers - shaw@shawc.demon.co.uk
London SW14 7JW UK
This is not a sig( with homage to Magritte).
  

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu