summaryrefslogtreecommitdiffstats
path: root/sys/vm/vm_zeroidle.c
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>2002-04-15 16:00:03 +0000
committerpeter <peter@FreeBSD.org>2002-04-15 16:00:03 +0000
commit3d8c7d4cabad90e8d24802b5e0864d76dc5a05d9 (patch)
tree07394998150236b94ddf401e0d3efec082c9ab55 /sys/vm/vm_zeroidle.c
parent929a8fb33da9bf37ac6d590e39a2e60f00c6c4dd (diff)
downloadFreeBSD-src-3d8c7d4cabad90e8d24802b5e0864d76dc5a05d9.zip
FreeBSD-src-3d8c7d4cabad90e8d24802b5e0864d76dc5a05d9.tar.gz
Pass vm_page_t instead of physical addresses to pmap_zero_page[_area]()
and pmap_copy_page(). This gets rid of a couple more physical addresses in upper layers, with the eventual aim of supporting PAE and dealing with the physical addressing mostly within pmap. (We will need either 64 bit physical addresses or page indexes, possibly both depending on the circumstances. Leaving this to pmap itself gives more flexibilitly.) Reviewed by: jake Tested on: i386, ia64 and (I believe) sparc64. (my alpha was hosed)
Diffstat (limited to 'sys/vm/vm_zeroidle.c')
-rw-r--r--sys/vm/vm_zeroidle.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/vm/vm_zeroidle.c b/sys/vm/vm_zeroidle.c
index 92e5f27..99ace6e 100644
--- a/sys/vm/vm_zeroidle.c
+++ b/sys/vm/vm_zeroidle.c
@@ -82,7 +82,7 @@ vm_page_zero_idle(void)
TAILQ_REMOVE(&vm_page_queues[m->queue].pl, m, pageq);
m->queue = PQ_NONE;
/* maybe drop out of Giant here */
- pmap_zero_page(VM_PAGE_TO_PHYS(m));
+ pmap_zero_page(m);
/* and return here */
vm_page_flag_set(m, PG_ZERO);
m->queue = PQ_FREE + m->pc;
OpenPOWER on IntegriCloud