summaryrefslogtreecommitdiffstats
path: root/sys/i386/include/pmap.h
diff options
context:
space:
mode:
authoralc <alc@FreeBSD.org>1999-04-02 17:59:49 +0000
committeralc <alc@FreeBSD.org>1999-04-02 17:59:49 +0000
commit11c705d43cba03107a07e70aec6cde667cdb6f64 (patch)
tree47ee9725506fe292c78ce9d1e5642f9f9e89555f /sys/i386/include/pmap.h
parentfb816fb02dea8e5cbc77c9ff73a6f9680164e25c (diff)
downloadFreeBSD-src-11c705d43cba03107a07e70aec6cde667cdb6f64.zip
FreeBSD-src-11c705d43cba03107a07e70aec6cde667cdb6f64.tar.gz
Put in place the infrastructure for improved UP and SMP TLB management.
In particular, replace the unused field pmap::pm_flag by pmap::pm_active, which is a bit mask representing which processors have the pmap activated. (Thus, it is a simple Boolean on UPs.) Also, eliminate an unnecessary memory reference from cpu_switch() in swtch.s. Assisted by: John S. Dyson <dyson@iquest.net> Tested by: Luoqi Chen <luoqi@watermarkgroup.com>, Poul-Henning Kamp <phk@critter.freebsd.dk>
Diffstat (limited to 'sys/i386/include/pmap.h')
-rw-r--r--sys/i386/include/pmap.h7
1 files changed, 2 insertions, 5 deletions
diff --git a/sys/i386/include/pmap.h b/sys/i386/include/pmap.h
index 79350a5..f6cd46f 100644
--- a/sys/i386/include/pmap.h
+++ b/sys/i386/include/pmap.h
@@ -42,7 +42,7 @@
*
* from: hp300: @(#)pmap.h 7.2 (Berkeley) 12/16/90
* from: @(#)pmap.h 7.4 (Berkeley) 5/12/91
- * $Id: pmap.h,v 1.58 1999/03/02 16:20:39 dg Exp $
+ * $Id: pmap.h,v 1.59 1999/03/11 18:28:46 dg Exp $
*/
#ifndef _MACHINE_PMAP_H_
@@ -199,16 +199,13 @@ struct pmap {
vm_object_t pm_pteobj; /* Container for pte's */
TAILQ_HEAD(,pv_entry) pm_pvlist; /* list of mappings in pmap */
int pm_count; /* reference count */
- int pm_flags; /* pmap flags */
+ int pm_active; /* active on cpus */
struct pmap_statistics pm_stats; /* pmap statistics */
struct vm_page *pm_ptphint; /* pmap ptp hint */
};
#define pmap_resident_count(pmap) (pmap)->pm_stats.resident_count
-#define PM_FLAG_LOCKED 0x1
-#define PM_FLAG_WANTED 0x2
-
typedef struct pmap *pmap_t;
#ifdef KERNEL
OpenPOWER on IntegriCloud