OSDev.org

The Place to Start for Operating System Developers
It is currently Tue Apr 30, 2024 3:25 am

All times are UTC - 6 hours




Post new topic Reply to topic  [ 31 posts ]  Go to page Previous  1, 2, 3
Author Message
 Post subject: Re: ATA driver problem
PostPosted: Wed Apr 17, 2024 5:27 pm 
Offline
Member
Member

Joined: Mon Mar 25, 2013 7:01 pm
Posts: 5146
WinExperements wrote:
Code:
    outb(inter_ata->bar4+4,0x00);

What is this code supposed to do? It definitely won't do anything useful.

WinExperements wrote:
Code:
    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?


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 31 posts ]  Go to page Previous  1, 2, 3

All times are UTC - 6 hours


Who is online

Users browsing this forum: No registered users and 32 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group