home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / os / linux / 20446 < prev    next >
Encoding:
Internet Message Format  |  1992-12-14  |  1.9 KB

  1. 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+
  2. From: fl0p+@andrew.cmu.edu (Frank T Lofaro)
  3. Newsgroups: comp.os.linux
  4. Subject: Floppy DMA, question and patch (?)
  5. Keywords: floppy,dma,patch,kernel,0.98.6,1MB,16MB,unofficial
  6. Message-ID: <If=DXGK00Vp3MDgVMZ@andrew.cmu.edu>
  7. Date: 14 Dec 92 11:12:50 GMT
  8. Article-I.D.: andrew.If=DXGK00Vp3MDgVMZ
  9. Organization: Sophomore, Math/Computer Science, Carnegie Mellon, Pittsburgh, PA
  10. Lines: 39
  11.  
  12.  
  13.     Is the 1MB DMA restriction in the floppy code necessary, or can
  14. 386/486's handle 16MB DMA for the floppy? I have this patch (suggested
  15. to me in e-mail) that ups the limit to 16MB from 1MB, and it seems to
  16. work. This patch was made using 0.98.6, but should fit into just about
  17. anything. (its really small). I am not posting in to
  18. comp.os.linux.announce, since I am not sure that what it does is okay.
  19. It seems to work for me, so far... Well, here is the patch, for
  20. kernel/blk_drv/floppy.c. Sorry, you have to cd into kernel/blk_drv after
  21. cd'ing into the root of your source tree (I made the diff in that
  22. directory, and since it is unofficial, and I was in a hurry, I haven't
  23. had a chance to fix it.). Well anyway, here is the patch, for those that
  24. want to try it. *NO GUARANTEES THAT THIS WILL WORK. IT MIGHT EVEN CRASH
  25. YOUR SYSTEM OR DAMAGE FILES*. Hopefully, we will all hear soon if this
  26. change is okay.
  27.  
  28. *** floppy.c.olddma    Mon Dec 14 00:54:40 1992
  29. --- floppy.c    Mon Dec 14 00:55:40 1992
  30. ***************
  31. *** 121,129 ****
  32.   
  33.   /*
  34.    * The DMA channel used by the floppy controller cannot access data at
  35. !  * addresses >= 1MB
  36.    */
  37. ! #define LAST_DMA_ADDR    (0x100000 - BLOCK_SIZE)
  38.   
  39.   /*
  40.    * globals used by 'result()'
  41. --- 121,129 ----
  42.   
  43.   /*
  44.    * The DMA channel used by the floppy controller cannot access data at
  45. !  * addresses >= 16MB
  46.    */
  47. ! #define LAST_DMA_ADDR    (0x1000000 - BLOCK_SIZE)
  48.   
  49.   /*
  50.    * globals used by 'result()'
  51.