diff options
-rw-r--r-- | sys/alpha/include/pmap.h | 1 | ||||
-rw-r--r-- | sys/ia64/include/pmap.h | 1 | ||||
-rw-r--r-- | sys/sparc64/include/pmap.h | 1 |
3 files changed, 3 insertions, 0 deletions
diff --git a/sys/alpha/include/pmap.h b/sys/alpha/include/pmap.h index 1c29390..ea25c44 100644 --- a/sys/alpha/include/pmap.h +++ b/sys/alpha/include/pmap.h @@ -183,6 +183,7 @@ struct pmap { LIST_ENTRY(pmap) pm_list; /* list of all pmaps. */ }; +#define pmap_page_is_mapped(m) (!TAILQ_EMPTY(&(m)->md.pv_list)) #define pmap_resident_count(pmap) (pmap)->pm_stats.resident_count #define PM_FLAG_LOCKED 0x1 diff --git a/sys/ia64/include/pmap.h b/sys/ia64/include/pmap.h index ff00b41..8ed0712 100644 --- a/sys/ia64/include/pmap.h +++ b/sys/ia64/include/pmap.h @@ -95,6 +95,7 @@ struct pmap { struct vm_page *pm_ptphint; /* pmap ptp hint */ }; +#define pmap_page_is_mapped(m) (!TAILQ_EMPTY(&(m)->md.pv_list)) #define pmap_resident_count(pmap) (pmap)->pm_stats.resident_count #define PM_FLAG_LOCKED 0x1 diff --git a/sys/sparc64/include/pmap.h b/sys/sparc64/include/pmap.h index ee378c4..3c7f84c 100644 --- a/sys/sparc64/include/pmap.h +++ b/sys/sparc64/include/pmap.h @@ -54,6 +54,7 @@ #define PMAP_CONTEXT_MAX 8192 +#define pmap_page_is_mapped(m) (!STAILQ_EMPTY(&(m)->md.tte_list)) #define pmap_resident_count(pm) (pm->pm_stats.resident_count) typedef struct pmap *pmap_t; |