summaryrefslogtreecommitdiffstats
path: root/sys/amd64/include/pmap.h
diff options
context:
space:
mode:
authoralc <alc@FreeBSD.org>2009-03-22 04:32:05 +0000
committeralc <alc@FreeBSD.org>2009-03-22 04:32:05 +0000
commit4a181a2befa386930e514801b20de7d173c3f4a7 (patch)
treeffb4e8dd98dc70dda007fd627c03d29e93e3f6e6 /sys/amd64/include/pmap.h
parent6de8f91b8f4d63f6eebea9660b1aaa3ed0dbb4fb (diff)
downloadFreeBSD-src-4a181a2befa386930e514801b20de7d173c3f4a7.zip
FreeBSD-src-4a181a2befa386930e514801b20de7d173c3f4a7.tar.gz
In general, the kernel virtual address of the pml4 page table page that is
stored in the pmap is from the direct map region. The two exceptions have been the kernel pmap and the swapper's pmap. These pmaps have used a kernel virtual address established by pmap_bootstrap() for their shared pml4 page table page. However, there is no reason not to use the direct map for these pmaps as well.
Diffstat (limited to 'sys/amd64/include/pmap.h')
-rw-r--r--sys/amd64/include/pmap.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/amd64/include/pmap.h b/sys/amd64/include/pmap.h
index 36d3667..b3f7d77 100644
--- a/sys/amd64/include/pmap.h
+++ b/sys/amd64/include/pmap.h
@@ -243,6 +243,10 @@ struct md_page {
TAILQ_HEAD(,pv_entry) pv_list;
};
+/*
+ * The kernel virtual address (KVA) of the level 4 page table page is always
+ * within the direct map (DMAP) region.
+ */
struct pmap {
struct mtx pm_mtx;
pml4_entry_t *pm_pml4; /* KVA of level 4 page table */
OpenPOWER on IntegriCloud