Re: Allocate contiguous wired memory and obtain physical address
Re: Allocate contiguous wired memory and obtain physical address
- Subject: Re: Allocate contiguous wired memory and obtain physical address
- From: "John D." <email@hidden>
- Date: Sun, 21 Dec 2008 22:13:45 +0100
On Sun, Dec 21, 2008 at 10:03 PM, Michael Smith <email@hidden> wrote:
> If you were to explain *why* you want this allocation, it might be easier to
> help you.
I'm toying with how the IDT is handled in XNU. Basically I need to
setup my own IDT via LIDT. Apparently doing this via mp_rendezvous()
(this is for a project involving a patch to the kernel source) and
using the physical address returned by IOMallocContiguous won't help.
Obviously I'm copying the original IDT and saving its original
location to be restored eventually, albeit it's not required in this
scenario.
I come from a Linux kernel development background and never
experienced this issue before, so I suppose I'm missing something
specific to XNU. Does the returned phys addr truly contain a fixed
address value?
>> I asked because kmem_alloc API functions exist for the same purpose
>> but they aren't even exported through com.apple.kernel.
> Give it a break already.
There was no pun intended there, at all. I was simply stating a fact.
Since IOLib provides perfectly useful API for this, it's not a problem
this time.
--
John Denkar
_______________________________________________
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