svn commit: r342594 - head/sys/i386/i386

Konstantin Belousov kib at FreeBSD.org
Sat Dec 29 15:49:04 UTC 2018


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);
 	}
 }
  


More information about the svn-src-all mailing list