Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 28 Nov 2002 10:53:29 -0800 (PST)
From:      Marcel Moolenaar <marcel@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 21638 for review
Message-ID:  <200211281853.gASIrTnp091362@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=21638

Change 21638 by marcel@marcel_nfs on 2002/11/28 10:52:55

	Don't use the difference between avail_start and avail_end
	as a measure for memory size. Memory descriptors allow for
	sparse address spaces, and often enough this is the case.
	Instead use the previously determined Maxmem.

Affected files ...

.. //depot/projects/ia64/sys/ia64/ia64/pmap.c#49 edit

Differences ...

==== //depot/projects/ia64/sys/ia64/ia64/pmap.c#49 (text+ko) ====

@@ -363,9 +363,12 @@
 	 * physical memory and try to locate a region which is large
 	 * enough to contain the VHPT (which must be a power of two in
 	 * size and aligned to a natural boundary).
+	 * Don't use the the difference between avail_start and avail_end
+	 * as a measure for memory size. The address space is not often
+	 * enough sparse, causing us to (try to) create a huge VHPT.
 	 */
 	vhpt_size = 15;
-	while ((1<<vhpt_size) < ia64_btop(avail_end - avail_start) * 32)
+	while ((1<<vhpt_size) < ia64_btop(Maxmem) * 32)
 		vhpt_size++;
 
 	vhpt_base = 0;

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe p4-projects" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200211281853.gASIrTnp091362>