summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoralc <alc@FreeBSD.org>2004-04-03 20:53:50 +0000
committeralc <alc@FreeBSD.org>2004-04-03 20:53:50 +0000
commitd74988558f319b1b440890479c1a2c02d85012a3 (patch)
tree6dd8cc36b649350006b1ec3bd51659c28b482d9d
parentf16d24b1ae83a99279e43034fa9c54202623148e (diff)
downloadFreeBSD-src-d74988558f319b1b440890479c1a2c02d85012a3.zip
FreeBSD-src-d74988558f319b1b440890479c1a2c02d85012a3.tar.gz
Remove ptmmap and ptvmmap. They are unused on amd64.
-rw-r--r--sys/amd64/amd64/pmap.c9
-rw-r--r--sys/amd64/include/pmap.h1
2 files changed, 1 insertions, 9 deletions
diff --git a/sys/amd64/amd64/pmap.c b/sys/amd64/amd64/pmap.c
index 831f3b9..1eb2af9 100644
--- a/sys/amd64/amd64/pmap.c
+++ b/sys/amd64/amd64/pmap.c
@@ -200,8 +200,7 @@ int pmap_pagedaemon_waken;
* All those kernel PT submaps that BSD is so fond of
*/
pt_entry_t *CMAP1 = 0;
-static pt_entry_t *ptmmap;
-caddr_t CADDR1 = 0, ptvmmap = 0;
+caddr_t CADDR1 = 0;
static pt_entry_t *msgbufmap;
struct msgbuf *msgbufp = 0;
@@ -507,12 +506,6 @@ pmap_bootstrap(firstaddr)
SYSMAP(caddr_t, pt_crashdumpmap, crashdumpmap, MAXDUMPPGS);
/*
- * ptvmmap is used for reading arbitrary physical pages via /dev/mem.
- * XXX ptmmap is not used.
- */
- SYSMAP(caddr_t, ptmmap, ptvmmap, 1)
-
- /*
* msgbufp is used to map the system message buffer.
* XXX msgbufmap is not used.
*/
diff --git a/sys/amd64/include/pmap.h b/sys/amd64/include/pmap.h
index 7783033..9c4d0c7 100644
--- a/sys/amd64/include/pmap.h
+++ b/sys/amd64/include/pmap.h
@@ -263,7 +263,6 @@ extern pt_entry_t *CMAP1;
extern vm_paddr_t avail_end;
extern vm_paddr_t avail_start;
extern vm_paddr_t phys_avail[];
-extern char *ptvmmap; /* poor name! */
extern vm_offset_t virtual_avail;
extern vm_offset_t virtual_end;
OpenPOWER on IntegriCloud