It was pointed out that you need to pass physical address to mmap. A step
was missed in posted recipe. Consider that the return from
vtophys(memory_chunk) was passed at the offset parameter. Sorry for the
confusion.
--- On Tue, 3/30/10, Dr. Baud wrote:
> From: Dr. Baud
> Subject: pmap_ex
Assuming that you're using the right pmap(it looks like you are, but it
depends on the thread context in which you're running), that will only work
if the userland application has touched the page and faulted it in. If it's
never tried to access the page it will never be mapped into the process's