--- Jeff Dike <jdike@...> wrote:
> You need to update the kernel page tables with the
> new mapping and call
> flush_tlb_kernel_vm. When the new process gets
> switched in, it will notice
> that its idea of the kernel mappings is out of date,
> and will remap everything.
So I need a support function that does this:
void *vaddr = (void *) get_vm(size);
err = os_map_memory(vaddr, fd_dma, udma.dma_addr,
size, 1, 1, 1);
// update kernel page table
So I'm building a mmap() routine for a dynamically
assigned location that works with UML's address space
mechanism. Maybe this already exists and I don't need
to build it again?
I don't know very much about the internals of the VM
system. Is there an example of what I need to do to
update the kernel page tables?
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.