Re: kernel panic on readBytes
Re: kernel panic on readBytes
- Subject: Re: kernel panic on readBytes
- From: "Timur Alperovich" <email@hidden>
- Date: Fri, 4 Apr 2008 16:59:49 -0400
Thanks for the prompt responses!
> Please see Technical Note 2063.
> <http://developer.apple.com/technotes/tn2002/tn2063.html>.
>
> Typing "kernel panic" into the search engine on developer.apple.com would
> turn this up too.
Ok, I figured out how to get the logs, etc, out of it. I tried
searching on google and the apple developer for the error it reports:
AppleDART::mapAddr not mapped for I/O -- and couldn't find anything as
to what could be going on. Any hints? Is there some other way to map
memory pages?
Here is a code snippet of what I'm doing:
IOMemoryDescriptor* d =
IOMemoryDescriptor::withPhysicalAddress(inStruct->offset, 4096,
kIODirectionOut);
if(d == NULL){
IOLog("Failed to grab a descriptor\n");
return kIOReturnError;
}
if(d->prepare() != kIOReturnSuccess){
IOLog("Failed to prepare the page\n");
return kIOReturnError;
}
char buf[4096];
int copied;
copied = d->readBytes(0, (void*) buf, 4096); // <--- Removing this
line gets rid of the panic -- makes me think the error is here.
d->complete();
d->release();
return kIOReturnSuccess;
_______________________________________________
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