Page 1 of 1

Ata controller status register zero

Posted: Thu Mar 31, 2022 7:21 am
by Ponteley
I want read sector from hard disk. I use ata pio. Work with 0x1f0-1f7 ports. The PIO protocol says that I must wait for BSY=0, write to DEV the number of the device on the channel, wait for BSY=0 and RDY=1. But the program goes into an eternal loop, because RDY always equals 0. How can i solve this proglem?
Registers:
Image

Re: Ata controller status register zero

Posted: Thu Mar 31, 2022 9:14 pm
by Octocontrabass
Is there a hard disk attached to that channel?

Post your bochsrc if you're not sure.