Page 3 of 3

Re: ATA driver problem

Posted: Wed Apr 17, 2024 5:27 pm
by Octocontrabass
WinExperements wrote:

Code: Select all

    outb(inter_ata->bar4+4,0x00);
What is this code supposed to do? It definitely won't do anything useful.
WinExperements wrote:

Code: Select all

    kprintf("Status of drive(after sending there commands): 0x%x\n",inb(inter_ata->base+ATA_REG_STATUS));
Debugging might be easier if you display the value of the status register from the first time you read it instead of reading it a second time.

Where do you acknowledge the interrupt in the interrupt controller?