aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKonstantin Belousov <kib@FreeBSD.org>2018-12-29 15:49:03 +0000
committerKonstantin Belousov <kib@FreeBSD.org>2018-12-29 15:49:03 +0000
commit05d5652a7db777977aba8539cd2111f86812d612 (patch)
tree1f37c6e7cd5caa41f3e3d8098d8db2dbda6eff02
parenta9419c7133679069dab5be83ceb2cef2f2efdd0c (diff)
downloadsrc-05d5652a7db777977aba8539cd2111f86812d612.tar.gz
src-05d5652a7db777977aba8539cd2111f86812d612.zip
i386: Fix allocation of the KVA frame for pmap_quick_enter_page().
Due to the typo, it shared the frame with the CMAP1 transient mapping. In collaboration with: pho MFC after: 3 days Sponsored by: The FreeBSD Foundation (kib)
Notes
Notes: svn path=/head/; revision=342594
-rw-r--r--sys/i386/i386/pmap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/i386/i386/pmap.c b/sys/i386/i386/pmap.c
index 763808be016c..cda4160870ed 100644
--- a/sys/i386/i386/pmap.c
+++ b/sys/i386/i386/pmap.c
@@ -735,7 +735,7 @@ pmap_init_reserved_pages(void)
pc->pc_cmap_pte2 = vtopte(pages + PAGE_SIZE);
pc->pc_cmap_addr1 = (caddr_t)pages;
pc->pc_cmap_addr2 = (caddr_t)(pages + PAGE_SIZE);
- pc->pc_qmap_addr = pages + atop(2);
+ pc->pc_qmap_addr = pages + ptoa(2);
}
}