virtual memory issue

Dan Malek dan at mvista.com
Tue Nov 6 06:11:51 EST 2001


Ofer Rashuk wrote:


> my question is who can i translate the virtual address to a physical one.

You can't from a user program, nor do you want to do this.  Using
mmap() to physical devices from a user application must be done
with great care, and is often used just for debugging purposes.  There
are resources used by the kernel and other applications that cause
race conditions you can't control.

If you need access to physical memory for any reason, you must
write a kernel device driver for this device so you can properly
manage the resources necessary to ensure proper system operation.

Thanks.


	-- Dan


** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/





More information about the Linuxppc-embedded mailing list