IOATAController and IOATAReg
IOATAController and IOATAReg
- Subject: IOATAController and IOATAReg
- From: a2z <email@hidden>
- Date: Wed, 24 Nov 2010 20:24:19 +0530
Hi,
I'm working on a PCIe SATA Controller driver. I've sub-classed IOATAController and in configureTFPointers() I need to map the task file regs. I map the registers as below for example
_tfStatusCmdReg = (IOATARegPtr8)(baseAddress + offset);
I get kernel panics with page fault when I try to read the value (*_tfStatusCmdReg). The same is applicable to all task file registers. Infact any call to super class(IOATAController) where such an access (read/write) is made panics with page fault.
Note: If I use OSReadLittleInt methods then I don't get panics. The value reported is correct too so the mapping seems to be OK.
I understand that IOATAReg is a class. But how does IOATAController handle all this. Any insight would be appreciated.
Thanks in advance.
Regards,
a2z
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-kernel mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden