From owner-p4-projects Thu Nov 28 10:57:17 2002 Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id A73ED37B404; Thu, 28 Nov 2002 10:57:15 -0800 (PST) Delivered-To: perforce@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 40D0C37B401 for ; Thu, 28 Nov 2002 10:57:15 -0800 (PST) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id EFF3843E9C for ; Thu, 28 Nov 2002 10:57:14 -0800 (PST) (envelope-from marcel@freebsd.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.6/8.12.6) with ESMTP id gASIrTmV091365 for ; Thu, 28 Nov 2002 10:53:29 -0800 (PST) (envelope-from marcel@freebsd.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.12.6/8.12.6/Submit) id gASIrTnp091362 for perforce@freebsd.org; Thu, 28 Nov 2002 10:53:29 -0800 (PST) Date: Thu, 28 Nov 2002 10:53:29 -0800 (PST) Message-Id: <200211281853.gASIrTnp091362@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to marcel@freebsd.org using -f From: Marcel Moolenaar Subject: PERFORCE change 21638 for review To: Perforce Change Reviews Sender: owner-p4-projects@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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<