Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/sparc/include Drop the managed() macro; it is no lo...



details:   https://anonhg.NetBSD.org/src/rev/3bc3fff1b49d
branches:  trunk
changeset: 504395:3bc3fff1b49d
user:      pk <pk%NetBSD.org@localhost>
date:      Thu Mar 01 15:56:47 2001 +0000

description:
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.

diffstat:

 sys/arch/sparc/include/pmap.h |  11 ++++++++---
 1 files changed, 8 insertions(+), 3 deletions(-)

diffs (32 lines):

diff -r 128235e04dc1 -r 3bc3fff1b49d sys/arch/sparc/include/pmap.h
--- a/sys/arch/sparc/include/pmap.h     Thu Mar 01 15:52:18 2001 +0000
+++ b/sys/arch/sparc/include/pmap.h     Thu Mar 01 15:56:47 2001 +0000
@@ -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 @@
 #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 @@
 
 #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))
 



Home | Main Index | Thread Index | Old Index