debug ahci controller

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
User avatar
Shaun
Member
Member
Posts: 43
Joined: Mon Sep 17, 2012 3:14 am
Contact:

debug ahci controller

Post by Shaun »

any body knows how to debug ahci controller, is there any debugger avaliable for that?

i have trouble with my ahci controller dirver, based on the serial ata spec pubblished by intel, my driver work fine on my hp ich6 chipset and virtualbox, but it is weird on my asus laptop which uses intel ich9m chipset, the ahci reset command always timeout.

virtualbox can only show me the result of my driver works, but for figuring out what and where i need to fix my code through debugging it step by step, any one have some good sulotions or suggestions?

thanks.
rdos
Member
Member
Posts: 3306
Joined: Wed Oct 01, 2008 1:55 pm

Re: debug ahci controller

Post by rdos »

Debugging support is something that should be present in your OS, not in the emulators you use. How else would you go about debugging when real hardware doesn't work?
User avatar
Shaun
Member
Member
Posts: 43
Joined: Mon Sep 17, 2012 3:14 am
Contact:

Re: debug ahci controller

Post by Shaun »

rdos wrote:Debugging support is something that should be present in your OS, not in the emulators you use. How else would you go about debugging when real hardware doesn't work?
thanks for your post.

i think that maybe i forget something when i initialize the controller, attachment is my source code, hope you can reivew it and do me a favour, thanks.

source code below. it works fine on virtualbox,
ahci.c
(17.92 KiB) Downloaded 99 times
header file
ahci.h
(15.69 KiB) Downloaded 31 times
Post Reply