Date: Sat, 29 Dec 2018 15:49:04 +0000 (UTC) From: Konstantin Belousov <kib@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r342594 - head/sys/i386/i386 Message-ID: <201812291549.wBTFn4hB088614@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: kib Date: Sat Dec 29 15:49:03 2018 New Revision: 342594 URL: https://svnweb.freebsd.org/changeset/base/342594 Log: 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) Modified: head/sys/i386/i386/pmap.c Modified: head/sys/i386/i386/pmap.c ============================================================================== --- head/sys/i386/i386/pmap.c Sat Dec 29 15:21:51 2018 (r342593) +++ head/sys/i386/i386/pmap.c Sat Dec 29 15:49:03 2018 (r342594) @@ -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); } }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201812291549.wBTFn4hB088614>