Re: kernel panic on readBytes
Re: kernel panic on readBytes
- Subject: Re: kernel panic on readBytes
- From: "Timur Alperovich" <email@hidden>
- Date: Tue, 8 Apr 2008 13:48:48 -0400
Quinn,
Thanks for the explanation.
> Of course, this doesn't help folks who are trying to access CPU physical
> addresses (-:
I am trying to read a page of physical memory and do an operation on
its contents (hash) and then return it to the user.
> I suspect you can work around this with the kIOMemoryTypePhysical64 flag,
> but I haven't looked at it in depth.
>From reading the documentation about the IOMemoryDescriptor on
developer.apple.com, it seems that calling "withPhysicalAddress"
should set the kMemoryTypePhysical flag. Also, I tried allocating
memory with IOMalloc instead of throwing it on the kernel stack, which
resulted in the same panic. Any other ideas? I guess I'll try setting
the flags manually and see how that goes.
Thank you,
Timur
_______________________________________________
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