diff options
author | Artur Grabowski <art@cvs.openbsd.org> | 2002-09-10 18:29:45 +0000 |
---|---|---|
committer | Artur Grabowski <art@cvs.openbsd.org> | 2002-09-10 18:29:45 +0000 |
commit | dc9f06d0330e3e7e4470e3ea0dc68bebaef4bff9 (patch) | |
tree | 1503c1f1af5126456f6dc9827abc9b960308687f /sys/arch/sun3 | |
parent | 7730c554bf1c303d60002833793768dbd9a6a681 (diff) |
Change the pmap_zero_page and pmap_copy_page API to take the struct vm_page *
instead of the pa. Most callers already had it handy and those who didn't
only called it for managed pages and were outside time-critical code.
This will allow us to make those functions clean and fast on sparc and
sparc64 letting us to avoid unnecessary cache flushes.
deraadt@ miod@ drahn@ ok.
Diffstat (limited to 'sys/arch/sun3')
-rw-r--r-- | sys/arch/sun3/sun3/pmap.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/sys/arch/sun3/sun3/pmap.c b/sys/arch/sun3/sun3/pmap.c index f2ba5a2fd41..dc55729c455 100644 --- a/sys/arch/sun3/sun3/pmap.c +++ b/sys/arch/sun3/sun3/pmap.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pmap.c,v 1.35 2002/03/14 01:26:47 millert Exp $ */ +/* $OpenBSD: pmap.c,v 1.36 2002/09/10 18:29:44 art Exp $ */ /* $NetBSD: pmap.c,v 1.64 1996/11/20 18:57:35 gwr Exp $ */ /*- @@ -3127,9 +3127,10 @@ pmap_resident_pages(pmap) * time. */ void -pmap_copy_page(src, dst) - vm_offset_t src, dst; +pmap_copy_page(struct vm_page *srcpg, struct vm_page *dstpg) { + paddr_t src = VM_PAGE_TO_PHYS(srcpg); + paddr_t dst = VM_PAGE_TO_PHYS(dstpg); int pte; int s; @@ -3168,9 +3169,9 @@ pmap_copy_page(src, dst) * at a time. */ void -pmap_zero_page(pa) - vm_offset_t pa; +pmap_zero_page(struct vm_page *pg) { + paddr_t pa = VM_PAGE_TO_PHYS(pg); int pte; int s; |