summaryrefslogtreecommitdiff
path: root/sys/arch/powerpc
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/arch/powerpc
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/arch/powerpc')
-rw-r--r--sys/arch/powerpc/include/pmap.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/arch/powerpc/include/pmap.h b/sys/arch/powerpc/include/pmap.h
index c13941fcc30..14d30fa66e2 100644
--- a/sys/arch/powerpc/include/pmap.h
+++ b/sys/arch/powerpc/include/pmap.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: pmap.h,v 1.28 2002/07/24 02:19:28 drahn Exp $ */
+/* $OpenBSD: pmap.h,v 1.29 2002/09/12 12:50:47 art Exp $ */
/* $NetBSD: pmap.h,v 1.1 1996/09/30 16:34:29 ws Exp $ */
/*-
@@ -117,8 +117,8 @@ boolean_t pteclrbits(paddr_t pa, u_int mask, u_int clear);
* Really simple. 0x0->0x80000000 contain 1->1 mappings of the physical
* memory. - XXX
*/
-#define PMAP_MAP_POOLPAGE(pa) ((vaddr_t)pa)
-#define PMAP_UNMAP_POOLPAGE(va) ((paddr_t)va)
+#define PMAP_MAP_POOLPAGE(pg) ((vaddr_t)VM_PAGE_TO_PHYS(pg))
+#define PMAP_UNMAP_POOLPAGE(va) PHYS_TO_VM_PAGE((paddr_t)va)
void pmap_bootstrap(u_int kernelstart, u_int kernelend);