summaryrefslogtreecommitdiff
path: root/sys/uvm
diff options
context:
space:
mode:
authorArtur Grabowski <art@cvs.openbsd.org>2002-09-12 12:50:48 +0000
committerArtur Grabowski <art@cvs.openbsd.org>2002-09-12 12:50:48 +0000
commit94cd548f5e458ee4007ccd36bb076cdb1633224f (patch)
treeac081ffb867356e61beac9cd473099270eba0863 /sys/uvm
parent5e160649cbb1039103e113108d099c3c2dcde44b (diff)
Change the PMAP_{MAP,UNMAP}_POOLPAGE api to take a vm_page as argument
and return a VM_PAGE. This is to allow sparc64 to cheaply record the VAC color for those pages.
Diffstat (limited to 'sys/uvm')
-rw-r--r--sys/uvm/uvm_km.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/sys/uvm/uvm_km.c b/sys/uvm/uvm_km.c
index b02253de261..aa7bf26bc15 100644
--- a/sys/uvm/uvm_km.c
+++ b/sys/uvm/uvm_km.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: uvm_km.c,v 1.32 2002/05/30 06:26:10 deraadt Exp $ */
+/* $OpenBSD: uvm_km.c,v 1.33 2002/09/12 12:50:47 art Exp $ */
/* $NetBSD: uvm_km.c,v 1.42 2001/01/14 02:10:01 thorpej Exp $ */
/*
@@ -855,7 +855,7 @@ uvm_km_alloc_poolpage1(map, obj, waitok)
} else
return (0);
}
- va = PMAP_MAP_POOLPAGE(VM_PAGE_TO_PHYS(pg));
+ va = PMAP_MAP_POOLPAGE(pg);
if (__predict_false(va == 0))
uvm_pagefree(pg);
return (va);
@@ -893,10 +893,7 @@ uvm_km_free_poolpage1(map, addr)
vaddr_t addr;
{
#if defined(PMAP_UNMAP_POOLPAGE)
- paddr_t pa;
-
- pa = PMAP_UNMAP_POOLPAGE(addr);
- uvm_pagefree(PHYS_TO_VM_PAGE(pa));
+ uvm_pagefree(PMAP_UNMAP_POOLPAGE(addr));
#else
int s;