Page 1 of 1

Floppy in Bochs

Posted: Sat Jul 09, 2011 1:40 am
by Nessphoro
Good day sirs,

As one of OS Dev members pointed out I should use Bochs for my debugging, but as soon as I switched to it from QEMU, the system stopped booting and halts on floppy initialization.

Any ideas?

Re: Floppy in Bochs

Posted: Sat Jul 09, 2011 2:27 am
by thepowersgang
Yes, debug your code. Bochs never has bugs (well, they're rare enough that you must exhaust all other avenues and produce a minimum test case to be sure), so your code is at fault.

Printf spam, single stepping, cli;hlt, it's up to you.

Re: Floppy in Bochs

Posted: Sat Jul 09, 2011 3:31 am
by DLBuunk
Two things come to mind:

One: bochs is not designed (according to the wiki) to handle polling-mode FDC transfers, so if you don't use DMA this may be the problem.
Two: the floppy subsystem requires a timer and bochs BIOS leaves the PIT uninitialized.