Add ASN housekeeping and a CPU mask to the pmap.
This commit is contained in:
parent
961a955498
commit
b637a998f4
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: pmap.old.h,v 1.30 1998/03/18 19:27:47 thorpej Exp $ */
|
||||
/* $NetBSD: pmap.old.h,v 1.31 1998/03/18 19:39:23 thorpej Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1998 The NetBSD Foundation, Inc.
|
||||
|
@ -84,7 +84,13 @@
|
|||
#include <machine/pte.h>
|
||||
|
||||
/*
|
||||
* Pmap stuff
|
||||
* Machine-dependent virtual memory state.
|
||||
*
|
||||
* If we ever support processor numbers higher than 63, we'll have to
|
||||
* rethink the CPU mask.
|
||||
*
|
||||
* XXX When we support multiple processors, pm_asn and pm_asngen need
|
||||
* XXX to be per-processor.
|
||||
*/
|
||||
struct pmap {
|
||||
LIST_ENTRY(pmap) pm_list; /* list of all pmaps */
|
||||
|
@ -94,10 +100,15 @@ struct pmap {
|
|||
struct pmap_statistics pm_stats; /* pmap statistics */
|
||||
long pm_nlev2; /* level 2 pt page count */
|
||||
long pm_nlev3; /* level 3 pt page count */
|
||||
unsigned int pm_asn; /* address space number */
|
||||
unsigned long pm_asngen; /* ASN generation number */
|
||||
unsigned long pm_cpus; /* mask of CPUs using pmap */
|
||||
};
|
||||
|
||||
typedef struct pmap *pmap_t;
|
||||
|
||||
#define PMAP_ASNGEN_INVALID 0 /* invalid generation; never matches */
|
||||
|
||||
extern struct pmap kernel_pmap_store;
|
||||
|
||||
#define pmap_kernel() (&kernel_pmap_store)
|
||||
|
|
Loading…
Reference in New Issue