From 94cd548f5e458ee4007ccd36bb076cdb1633224f Mon Sep 17 00:00:00 2001 From: Artur Grabowski Date: Thu, 12 Sep 2002 12:50:48 +0000 Subject: 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. --- sys/arch/powerpc/include/pmap.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sys/arch/powerpc') 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); -- cgit v1.2.3