svn commit: r184008 - projects/releng_6_xen/sys/i386/xen

Kip Macy kmacy at FreeBSD.org
Sat Oct 18 03:57:57 UTC 2008


Author: kmacy
Date: Sat Oct 18 03:57:57 2008
New Revision: 184008
URL: http://svn.freebsd.org/changeset/base/184008

Log:
  Evidently deriving l1_pages from nr_pt_frames can be wrong in both directions.
  Change to always calculate.

Modified:
  projects/releng_6_xen/sys/i386/xen/xen_machdep.c

Modified: projects/releng_6_xen/sys/i386/xen/xen_machdep.c
==============================================================================
--- projects/releng_6_xen/sys/i386/xen/xen_machdep.c	Sat Oct 18 01:12:02 2008	(r184007)
+++ projects/releng_6_xen/sys/i386/xen/xen_machdep.c	Sat Oct 18 03:57:57 2008	(r184008)
@@ -967,11 +967,11 @@ initvalues(start_info_t *startinfo)
 	 */
 	xen_pt_unpin(IdlePDPTma);
 	
-	for (i = 0; i < l1_pages; i++) {
+	for (i = 0; i < 20; i++) {
 		int startidx = ((KERNBASE >> 18) & PAGE_MASK) >> 3;
 
 		if (IdlePTD[startidx + i] == 0) {
-			l1_pages = i - 1;
+			l1_pages = i;
 			break;
 		}	
 	}


More information about the svn-src-projects mailing list