-------- Message original -------- Sujet: Re: [Milkymist port] virtual memory management Date : Tue, 18 Feb 2014 13:48:25 +0100 De : Joerg Sonnenberger <[email protected]> Pour : [email protected] 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 _______________________________________________ Devel mailing list [email protected] https://ssl.serverraum.org/lists/listinfo/devel
