summaryrefslogtreecommitdiff
path: root/sys/uvm/uvm_pmap.h
diff options
context:
space:
mode:
authorArtur Grabowski <art@cvs.openbsd.org>2002-09-10 18:29:45 +0000
committerArtur Grabowski <art@cvs.openbsd.org>2002-09-10 18:29:45 +0000
commitdc9f06d0330e3e7e4470e3ea0dc68bebaef4bff9 (patch)
tree1503c1f1af5126456f6dc9827abc9b960308687f /sys/uvm/uvm_pmap.h
parent7730c554bf1c303d60002833793768dbd9a6a681 (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/uvm/uvm_pmap.h')
-rw-r--r--sys/uvm/uvm_pmap.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/uvm/uvm_pmap.h b/sys/uvm/uvm_pmap.h
index a30bba6069b..1a4df27f9dd 100644
--- a/sys/uvm/uvm_pmap.h
+++ b/sys/uvm/uvm_pmap.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: uvm_pmap.h,v 1.14 2002/03/18 07:48:11 hugh Exp $ */
+/* $OpenBSD: uvm_pmap.h,v 1.15 2002/09/10 18:29:44 art Exp $ */
/* $NetBSD: uvm_pmap.h,v 1.1 2000/06/27 09:00:14 mrg Exp $ */
/*
@@ -125,7 +125,7 @@ void pmap_collect(pmap_t);
void pmap_copy(pmap_t, pmap_t, vaddr_t, vsize_t, vaddr_t);
#endif
#if !defined(pmap_copy_page)
-void pmap_copy_page(paddr_t, paddr_t);
+void pmap_copy_page(struct vm_page *, struct vm_page *);
#endif
struct pmap *pmap_create(void);
void pmap_destroy(pmap_t);
@@ -164,7 +164,7 @@ void pmap_remove(pmap_t, vaddr_t, vaddr_t);
void pmap_update(void);
#endif
#if !defined(pmap_zero_page)
-void pmap_zero_page(paddr_t);
+void pmap_zero_page(struct vm_page *);
#endif
void pmap_virtual_space(vaddr_t *, vaddr_t *);