PDA

View Full Version : Physical address



Mordred
January 12th, 2006, 05:13 PM
Hi

I'm building an embedded system running linux on a powerpc.
This system uses a coprocessor. For this I need to retrieve
the physical address of the data I stored in the RAM.

Is this possible and where do I find information about it?

Thanks

LordHunter317
January 12th, 2006, 05:37 PM
I don't know if it's possible on PPC, it's possible in Linux if you're root.

Otherwise, you have to be in the kernel.

Mordred
January 12th, 2006, 06:17 PM
I am root so that's no problem,
How can I use this in a C++ program?

LordHunter317
January 12th, 2006, 06:29 PM
Err, I misspoke. It's possible on IA-32 on Linux, if you're root.

I'm pretty sure you're going to have be in the kernel.

Mordred
January 12th, 2006, 06:34 PM
I haven't done anything like that before,
where can I find information about it?

coredump
January 13th, 2006, 12:54 PM
Maybe you could try the Kernel Newbies:

http://www.kernelnewbies.org/

Or perhaps the two O'Reilly books would help: Linux Device Drivers and Understanding the Linux Kernel (both now 3rd edition).