tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: [Milkymist port] virtual memory management



On Tue, Feb 18, 2014 at 12:54:05PM +0100, Yann Sionneau wrote:
> Is there somewhere a function like vaddr_t map_paddr(paddr_t, prot)?

uvm_km_alloc with UVM_KMF_VAONLY can be used to allocate the VA,
pmap_kenter_pa to map a given physical address. Don't forget to call
pmap_update(pmap_kernel()) afterwards. A simple example is
arch/x86/x86/mpbios.c, mpbios_map.

Joerg


Home | Main Index | Thread Index | Old Index