home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!uwm.edu!ogicse!das-news.harvard.edu!cantaloupe.srv.cs.cmu.edu!crabapple.srv.cs.cmu.edu!andrew.cmu.edu!fl0p+
- From: fl0p+@andrew.cmu.edu (Frank T Lofaro)
- Newsgroups: comp.os.linux
- Subject: Floppy DMA, question and patch (?)
- Keywords: floppy,dma,patch,kernel,0.98.6,1MB,16MB,unofficial
- Message-ID: <If=DXGK00Vp3MDgVMZ@andrew.cmu.edu>
- Date: 14 Dec 92 11:12:50 GMT
- Article-I.D.: andrew.If=DXGK00Vp3MDgVMZ
- Organization: Sophomore, Math/Computer Science, Carnegie Mellon, Pittsburgh, PA
- Lines: 39
-
-
- Is the 1MB DMA restriction in the floppy code necessary, or can
- 386/486's handle 16MB DMA for the floppy? I have this patch (suggested
- to me in e-mail) that ups the limit to 16MB from 1MB, and it seems to
- work. This patch was made using 0.98.6, but should fit into just about
- anything. (its really small). I am not posting in to
- comp.os.linux.announce, since I am not sure that what it does is okay.
- It seems to work for me, so far... Well, here is the patch, for
- kernel/blk_drv/floppy.c. Sorry, you have to cd into kernel/blk_drv after
- cd'ing into the root of your source tree (I made the diff in that
- directory, and since it is unofficial, and I was in a hurry, I haven't
- had a chance to fix it.). Well anyway, here is the patch, for those that
- want to try it. *NO GUARANTEES THAT THIS WILL WORK. IT MIGHT EVEN CRASH
- YOUR SYSTEM OR DAMAGE FILES*. Hopefully, we will all hear soon if this
- change is okay.
-
- *** floppy.c.olddma Mon Dec 14 00:54:40 1992
- --- floppy.c Mon Dec 14 00:55:40 1992
- ***************
- *** 121,129 ****
-
- /*
- * The DMA channel used by the floppy controller cannot access data at
- ! * addresses >= 1MB
- */
- ! #define LAST_DMA_ADDR (0x100000 - BLOCK_SIZE)
-
- /*
- * globals used by 'result()'
- --- 121,129 ----
-
- /*
- * The DMA channel used by the floppy controller cannot access data at
- ! * addresses >= 16MB
- */
- ! #define LAST_DMA_ADDR (0x1000000 - BLOCK_SIZE)
-
- /*
- * globals used by 'result()'
-