How to access physical (as opposed to virtual) memory in C language for a Linux app.
Hi,
I am running Linux kernel on MPC5200 processor board and am developing a C application. The application needs to write to certain registers which are located at 0xf000xxxx physical memory address to utilize certain hardware functionality not available through operating system. Does anyone know how can I access physical memory address directly, or alternatively, how can I allocate memory so that the MMU maps it to the desired physical memory? I appreciate any advice or help you can provide. Thanks!! |
"mmap" is probably what you're looking for (your mileage might vary, depending on the specific hardware you're trying to interface to).
Google for "mmap" "linux" "embedded systems", etc: you'll find lots of great info. |
Thank you very much!! It appears that is what I am looking for. I'll give it a shot. Thanks again!
Quote:
|
All times are GMT -5. The time now is 10:48 PM. |