Mapping logical to physical memory addresses
Mapping logical to physical memory addresses
- Subject: Mapping logical to physical memory addresses
- From: Tony Scaminaci <email@hidden>
- Date: Sun, 5 Mar 2006 13:21:54 -0600
Is there a system command or kernel call that returns the physical
address corresponding to the logical address allocated by malloc? In
my code, I first do a malloc for all of the free physical ram
followed by mlock. Because I'm only allocating from the free physical
ram pool, all allocated memory resides in ram (which it must for a
memory test application). However, the start address returned by
malloc is a local address which I can't figure out how to map to the
physical DIMM. If I run two instances of the program at the same time
and allocate half the free ram to each instance, both instances have
the same local start address. How does one figure out the physical
address corresponding to these local addresses returned by malloc?
Also, I'm under the impression that the memory manager doesn't run in
single-user mode. Does that mean that these local addresses are
really physical addresses in single-user mode?
Thanks for any help,
Tony
_______________________________________________
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