From ddc6d86ca308a0eadb79dcdbf69d4d4a33ffbaab Mon Sep 17 00:00:00 2001 From: Marcel Moolenaar Date: Fri, 29 Nov 2002 20:10:21 +0000 Subject: Better handle sparse physical memory: Don't use the address range as a measure for available memory to scale the VHPT. Instead, use the previously determined Maxmem. Approved by: re (carte blanc) --- sys/ia64/ia64/pmap.c | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) (limited to 'sys') diff --git a/sys/ia64/ia64/pmap.c b/sys/ia64/ia64/pmap.c index 3dea505820905..4165d739fef96 100644 --- a/sys/ia64/ia64/pmap.c +++ b/sys/ia64/ia64/pmap.c @@ -360,9 +360,12 @@ pmap_bootstrap() * 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 difference between avail_start and avail_end + * as a measure for memory size. The address space is often + * enough sparse, causing us to (try to) create a huge VHPT. */ vhpt_size = 15; - while ((1<pcb_hw.apcb_asn = 0; -#endif /* * Reserve some memory for allocating pvs while bootstrapping -- cgit v1.3