Subject: pmap_{copy,zero}_page() -- change arguments?
To: None <tech-kern@netbsd.org>
From: Jason R Thorpe <thorpej@wasabisystems.com>
List: tech-kern
Date: 04/09/2002 19:10:53
pmap_copy_page() and pmap_zero_page() currently take paddr_t
arguments.

Some platforms (MIPS, ARM, for example) have to make handle virtual
aliases for the source page of pmap_copy_page(), and thus have to
look up the vm_page for that page.

I'd like to change the arguments to these functions to take vm_page *'s
instead of paddr_t's, to save work on those platforms.  It should have
no impact on platforms that don't need to handle aliases, since
VM_PAGE_TO_PHYS() is already used at the call sites.

Comments?

-- 
        -- Jason R. Thorpe <thorpej@wasabisystems.com>