From 80ba31bd215733ef9183e9529b82e49e7cbb4c88 Mon Sep 17 00:00:00 2001 From: pk Date: Thu, 1 Mar 2001 15:56:47 +0000 Subject: [PATCH] Drop the managed() macro; it is no longer used. State the intended use of the vm_{first,last,num}_phys variables that are still exported from pmap.c. --- sys/arch/sparc/include/pmap.h | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/sys/arch/sparc/include/pmap.h b/sys/arch/sparc/include/pmap.h index cd3ab4d643b2..92ea73191e1e 100644 --- a/sys/arch/sparc/include/pmap.h +++ b/sys/arch/sparc/include/pmap.h @@ -1,4 +1,4 @@ -/* $NetBSD: pmap.h,v 1.48 2000/05/31 12:04:29 pk Exp $ */ +/* $NetBSD: pmap.h,v 1.49 2001/03/01 15:56:47 pk Exp $ */ /* * Copyright (c) 1996 @@ -186,7 +186,13 @@ struct kvm_cpustate { #define PMAP_NULL ((pmap_t)0) extern struct pmap kernel_pmap_store; -extern paddr_t vm_first_phys, vm_num_phys; + +/* + * Bounds on managed physical addresses. Used by (MD) users + * of uvm_pglistalloc() to provide search hints. + */ +extern paddr_t vm_first_phys, vm_last_phys; +extern psize_t vm_num_phys; /* * Since PTEs also contain type bits, we have to have some way @@ -229,7 +235,6 @@ int pmap_dumpmmu __P((int (*)__P((dev_t, daddr_t, caddr_t, size_t)), #define pmap_kernel() (&kernel_pmap_store) #define pmap_resident_count(pmap) pmap_count_ptes(pmap) -#define managed(pa) ((unsigned)((pa) - vm_first_phys) < vm_num_phys) #define PMAP_PREFER(fo, ap) pmap_prefer((fo), (ap))