Page 1 of 1

debug ahci controller

Posted: Sat May 25, 2013 1:03 am
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.

Re: debug ahci controller

Posted: Sat May 25, 2013 1:25 am
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?

Re: debug ahci controller

Posted: Sat May 25, 2013 1:47 am
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 32 times