From 8365d52166d944c159f1d50bb8f78c4d2d1bd409 Mon Sep 17 00:00:00 2001 From: Alan Cox Date: Mon, 5 Aug 2002 03:40:28 +0000 Subject: [PATCH] o Introduce pmap_page_is_mapped(). Its purpose is to obsolete the PG_MAPPED flag. --- sys/amd64/include/pmap.h | 1 + sys/i386/include/pmap.h | 1 + 2 files changed, 2 insertions(+) diff --git a/sys/amd64/include/pmap.h b/sys/amd64/include/pmap.h index e0789fc68f43..9ac4d3accb45 100644 --- a/sys/amd64/include/pmap.h +++ b/sys/amd64/include/pmap.h @@ -206,6 +206,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 typedef struct pmap *pmap_t; diff --git a/sys/i386/include/pmap.h b/sys/i386/include/pmap.h index e0789fc68f43..9ac4d3accb45 100644 --- a/sys/i386/include/pmap.h +++ b/sys/i386/include/pmap.h @@ -206,6 +206,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 typedef struct pmap *pmap_t;