summaryrefslogtreecommitdiff
path: root/sys/arch/alpha
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/alpha
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/alpha')
-rw-r--r--sys/arch/alpha/include/pmap.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/arch/alpha/include/pmap.h b/sys/arch/alpha/include/pmap.h
index ce905446937..d70588646a4 100644
--- a/sys/arch/alpha/include/pmap.h
+++ b/sys/arch/alpha/include/pmap.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: pmap.h,v 1.12 2002/07/24 00:33:50 art Exp $ */
+/* $OpenBSD: pmap.h,v 1.13 2002/09/12 12:50:47 art Exp $ */
/* $NetBSD: pmap.h,v 1.37 2000/11/19 03:16:35 thorpej Exp $ */
/*-
@@ -203,8 +203,8 @@ extern pt_entry_t *VPT; /* Virtual Page Table */
/*
* Alternate mapping hooks for pool pages. Avoids thrashing the TLB.
*/
-#define PMAP_MAP_POOLPAGE(pa) ALPHA_PHYS_TO_K0SEG((pa))
-#define PMAP_UNMAP_POOLPAGE(va) ALPHA_K0SEG_TO_PHYS((va))
+#define PMAP_MAP_POOLPAGE(pg) ALPHA_PHYS_TO_K0SEG(VM_PAGE_TO_PHYS(pg))
+#define PMAP_UNMAP_POOLPAGE(va) PHYS_TO_VM_PAGE(ALPHA_K0SEG_TO_PHYS((va)))
paddr_t vtophys(vaddr_t);