Page 1 of 1
Device driver FDC in virtual or protected mode
Posted: Thu Jul 10, 2014 4:33 pm
by Neo92
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.
Re: Device driver FDC in virtual or protected mode
Posted: Fri Jul 11, 2014 12:51 am
by Combuster
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
Posted: Fri Jul 11, 2014 4:35 am
by Neo92
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
Re: Device driver FDC in virtual or protected mode
Posted: Fri Jul 11, 2014 4:37 am
by Combuster
partial read() on floppy image
Shame on me for trying to help someone who doesn't even fix known issues.
Re: Device driver FDC in virtual or protected mode
Posted: Fri Jul 11, 2014 9:18 am
by Neo92
Virtual 8086 mode sends interrupts to your kernel, not the BIOS, for safety reasons.
I already knew that.
The int 0x13 call needs timekeeping and disk interrupts to perform it's task.
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...