Subject: Re: Multiple page sizes and the pmap API
To: Jason R Thorpe <thorpej@wasabisystems.com>
From: Andreas Persson <pap.is@home.se>
List: tech-kern
Date: 12/07/2001 00:44:11
On Thu, Dec 06, 2001 at 11:40:39AM -0800, Jason R Thorpe <thorpej@wasabisystems.com> wrote:
>		pmap_enter(pmap, va, pa,
>		    VM_PROT_READ|VM_PROT_WRITE|PMAP_PAGESIZE(1), 0);
>	    or
>		pmap_kenter_pa(va, pa,
>		    VM_PROT_READ|VM_PROT_WRITE|PMAP_PAGESIZE(1));
Any reason why you couldn't just add a range argument to these (like
pmap_map) and let the underlying pmap sort it out? Could be a win in the
general case were a bigger page can't be used, since on some architectures
you need to walk down a page tree and/or flush tlbs when adding/removing
entries.

-- 
Andreas Persson
pap.is@home.se