Device driver FDC in virtual or protected mode
Device driver FDC in virtual or protected mode
Hi Guys, i'm create a device driver for FDC through ports with DMA, but i try to execute in virtual mode and don't work , only works in real mode. To a few words it is as if i execute the interrupt 0x13. alternatively, how can i fix it without drop back to realmode? Thanks.
- Combuster
- Member
- Posts: 9301
- Joined: Wed Oct 18, 2006 3:45 am
- Libera.chat IRC: [com]buster
- Location: On the balcony, where I can actually keep 1½m distance
- Contact:
Re: Device driver FDC in virtual or protected mode
Virtual 8086 mode sends interrupts to your kernel, not the BIOS, for safety reasons. The int 0x13 call needs timekeeping and disk interrupts to perform it's task.
Re: Device driver FDC in virtual or protected mode
Hi Combuster, you let me get, i must set a timer for disk access? I didn't understand... however 'int 13h' works on Bochs but doesn't read the next sector, show the log message 'partial read() on floppy image returns 510/512' seems that reads instead... help me
- Combuster
- Member
- Posts: 9301
- Joined: Wed Oct 18, 2006 3:45 am
- Libera.chat IRC: [com]buster
- Location: On the balcony, where I can actually keep 1½m distance
- Contact:
Re: Device driver FDC in virtual or protected mode
Shame on me for trying to help someone who doesn't even fix known issues.partial read() on floppy image
Re: Device driver FDC in virtual or protected mode
I already knew that.Virtual 8086 mode sends interrupts to your kernel, not the BIOS, for safety reasons.
What does that mean 'call needs timekeeping to perform it's task'? I set it MSR into floppy controller but nothing, maybe if you explain better i understand...The int 0x13 call needs timekeeping and disk interrupts to perform it's task.