Re: Physical memory loading into UVM

Ben Harris <[email protected]> Mon, 30 Sep 2002 18:11:18 +0100
Newsgroups gmane.os.netbsd.ports.arm32
Organization Linux Unlimited
Message-ID <[email protected]>
In article <[email protected]> you write:
>For the instance, I'm going to port kernel to Psion
>revo plus. 
>It has ARM710T and 16 Mb RAM in 4 non contiguous
>memory chunks.
>LCD buffer is mapped on RAM too.
>
>I would like to reuse existing arch/arcm code
>including pmap, of course.
>In this case, I only need to define follow consts: 
>
>#define	VM_PHYSSEG_MAX		4
>#define	VM_PHYSSEG_STRAT	VM_PSTRAT_BSEARCH
>#define	VM_PHYSSEG_NOADD
>
>and next, call the uvm_page_physload for define
>physical memory regions and correct loading them into
>UVM.
>Is it correct ?

That sounds good, yes.

-- 
Ben Harris                                                   <[email protected]>
Portmaster, NetBSD/acorn26           <URL:http://www.netbsd.org/Ports/acorn26/>