aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Cox <alc@FreeBSD.org>2004-06-19 19:09:08 +0000
committerAlan Cox <alc@FreeBSD.org>2004-06-19 19:09:08 +0000
commit785f2cdf57eeeff3a5ce094fa78571273fc6f0ae (patch)
tree4d7dbfbe55b4e83ef04236e44b7f03a2da642b83
parent7d475e356f0ac58a291132b1086c50a1eaf9c65b (diff)
Notes
-rw-r--r--sys/amd64/amd64/pmap.c10
-rw-r--r--sys/i386/i386/pmap.c15
2 files changed, 8 insertions, 17 deletions
diff --git a/sys/amd64/amd64/pmap.c b/sys/amd64/amd64/pmap.c
index 9e374c734b862..62a91a6a6ff57 100644
--- a/sys/amd64/amd64/pmap.c
+++ b/sys/amd64/amd64/pmap.c
@@ -196,13 +196,11 @@ int pmap_pagedaemon_waken;
*/
pt_entry_t *CMAP1 = 0;
caddr_t CADDR1 = 0;
-static pt_entry_t *msgbufmap;
struct msgbuf *msgbufp = 0;
/*
* Crashdump maps.
*/
-static pt_entry_t *pt_crashdumpmap;
static caddr_t crashdumpmap;
static PMAP_INLINE void free_pv_entry(pv_entry_t pv);
@@ -441,7 +439,7 @@ pmap_bootstrap(firstaddr)
vm_paddr_t *firstaddr;
{
vm_offset_t va;
- pt_entry_t *pte;
+ pt_entry_t *pte, *unused;
avail_start = *firstaddr;
@@ -493,14 +491,12 @@ pmap_bootstrap(firstaddr)
/*
* Crashdump maps.
*/
- SYSMAP(caddr_t, pt_crashdumpmap, crashdumpmap, MAXDUMPPGS);
+ SYSMAP(caddr_t, unused, crashdumpmap, MAXDUMPPGS)
/*
* msgbufp is used to map the system message buffer.
- * XXX msgbufmap is not used.
*/
- SYSMAP(struct msgbuf *, msgbufmap, msgbufp,
- atop(round_page(MSGBUF_SIZE)))
+ SYSMAP(struct msgbuf *, unused, msgbufp, atop(round_page(MSGBUF_SIZE)))
virtual_avail = va;
diff --git a/sys/i386/i386/pmap.c b/sys/i386/i386/pmap.c
index f347ceee19d14..e11593800f3e7 100644
--- a/sys/i386/i386/pmap.c
+++ b/sys/i386/i386/pmap.c
@@ -216,17 +216,15 @@ int pmap_pagedaemon_waken;
* All those kernel PT submaps that BSD is so fond of
*/
pt_entry_t *CMAP1 = 0;
-static pt_entry_t *CMAP2, *CMAP3, *ptmmap;
+static pt_entry_t *CMAP2, *CMAP3;
caddr_t CADDR1 = 0, ptvmmap = 0;
static caddr_t CADDR2, CADDR3;
static struct mtx CMAPCADDR12_lock;
-static pt_entry_t *msgbufmap;
struct msgbuf *msgbufp = 0;
/*
* Crashdump maps.
*/
-static pt_entry_t *pt_crashdumpmap;
static caddr_t crashdumpmap;
#ifdef SMP
@@ -308,7 +306,7 @@ pmap_bootstrap(firstaddr, loadaddr)
vm_paddr_t loadaddr;
{
vm_offset_t va;
- pt_entry_t *pte;
+ pt_entry_t *pte, *unused;
int i;
/*
@@ -368,20 +366,17 @@ pmap_bootstrap(firstaddr, loadaddr)
/*
* Crashdump maps.
*/
- SYSMAP(caddr_t, pt_crashdumpmap, crashdumpmap, MAXDUMPPGS);
+ SYSMAP(caddr_t, unused, crashdumpmap, MAXDUMPPGS)
/*
* ptvmmap is used for reading arbitrary physical pages via /dev/mem.
- * XXX ptmmap is not used.
*/
- SYSMAP(caddr_t, ptmmap, ptvmmap, 1)
+ SYSMAP(caddr_t, unused, ptvmmap, 1)
/*
* msgbufp is used to map the system message buffer.
- * XXX msgbufmap is not used.
*/
- SYSMAP(struct msgbuf *, msgbufmap, msgbufp,
- atop(round_page(MSGBUF_SIZE)))
+ SYSMAP(struct msgbuf *, unused, msgbufp, atop(round_page(MSGBUF_SIZE)))
/*
* ptemap is used for pmap_pte_quick