-------- Message original --------
Sujet:  Re: [Milkymist port] virtual memory management
Date :  Tue, 18 Feb 2014 13:48:25 +0100
De :    Joerg Sonnenberger <jo...@britannica.bec.de>
Pour :  tech-k...@netbsd.org



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
Devel@lists.milkymist.org
https://ssl.serverraum.org/lists/listinfo/devel

Reply via email to