I've been working on my floppy driver for a couple of weeks now. Reads work fine in VMware, but not Bochs or on real hardware. VMware dumps core on writes. I've only tried writes on vmware so far.
After trying to debug this for a week solid, my mind is going nuts from staring at this code and the floppy datasheets. I'm going to start on my ATA driver in an attempt to clear my head, but in the meantime I was wondering if maybe someone could spot what I'm doing wrong. I've attached the floppy header file and the C source as well.
Thanks!
Floppy driver problems :(
- mathematician
- Member
- Posts: 437
- Joined: Fri Dec 15, 2006 5:26 pm
- Location: Church Stretton Uk
-
- Member
- Posts: 2566
- Joined: Sun Jan 14, 2007 9:15 pm
- Libera.chat IRC: miselin
- Location: Sydney, Australia (I come from a land down under!)
- Contact:
Hence the reason my OS doesn't support floppies yet (does support hard drives through LBA28 though - ATA is much easier).mathematician wrote:I can't see anything obviously wrong, but then the floppy is easily the most temperamental piece of hardware on the surface of the planet.
With the floppy driver, there are multiple things to look for, such as disk changes (which it notifies you about), errors in reads (common) etc...
Also remember that in Bochs you have the log - you can easily find out what went wrong that way.