Reserving specific physical memory and mapping it to virtual memory

From: Jongman Heo
Date: Fri Jun 10 2011 - 15:40:47 EST


Dear all,

I have a physical memory area, which is reserved by bootloader. Its
size is less than a page size (4kB).
The area will be reserved in order not to be used from Linux side, by
using memmap= boot arguments.

What I want to do is that reserving a virtual memory (one page) at
boot time, as well. (may need kernel modification?)
And copying the data of physical memory above to the reserved virtual memory.

Then, certain user space program can access to the memory, using the
address it already knows, which is physical.

I know that mmap() can do the memory translation thing, but we have a
limitation to use such kind of method.

Does anyboy know the solution?

Thanks in advance.

Regards,
Jongman.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/