From 785f2cdf57eeeff3a5ce094fa78571273fc6f0ae Mon Sep 17 00:00:00 2001 From: Alan Cox Date: Sat, 19 Jun 2004 19:09:08 +0000 Subject: [PATCH] Remove unused pt_entry_ts. Remove an unneeded semicolon. --- sys/amd64/amd64/pmap.c | 10 +++------- sys/i386/i386/pmap.c | 15 +++++---------- 2 files changed, 8 insertions(+), 17 deletions(-) diff --git a/sys/amd64/amd64/pmap.c b/sys/amd64/amd64/pmap.c index 9e374c734b86..62a91a6a6ff5 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 f347ceee19d1..e11593800f3e 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