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?
Floppy in Bochs
- thepowersgang
- Member
- Posts: 734
- Joined: Tue Dec 25, 2007 6:03 am
- Libera.chat IRC: thePowersGang
- Location: Perth, Western Australia
- Contact:
Re: Floppy in Bochs
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.
Printf spam, single stepping, cli;hlt, it's up to you.
Kernel Development, It's the brain surgery of programming.
Acess2 OS (c) | Tifflin OS (rust) | mrustc - Rust compiler
Currently Working on: mrustc
Acess2 OS (c) | Tifflin OS (rust) | mrustc - Rust compiler
Currently Working on: mrustc
Re: Floppy in Bochs
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.
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.