diff options
author | marcel <marcel@FreeBSD.org> | 2003-02-15 20:58:32 +0000 |
---|---|---|
committer | marcel <marcel@FreeBSD.org> | 2003-02-15 20:58:32 +0000 |
commit | 1141b745fe24c628b1961c120afd608b941080bb (patch) | |
tree | 23f7078bde8233c69ad4f8e4e2f5619da4c11281 /sys/ia64 | |
parent | 193a8816758537fdb7f762e49b7c7b0ddf22eb09 (diff) | |
download | FreeBSD-src-1141b745fe24c628b1961c120afd608b941080bb.zip FreeBSD-src-1141b745fe24c628b1961c120afd608b941080bb.tar.gz |
Fix misuse of Maxmem in the calculation of the VHPT size. Maxmem
is already in pages, so we should not convert from bytes to pages.
The result of this bug was bad scaling of the VHPT relative to the
available memory.
Submitted by: Arun Sharma <arun@sharma-home.net>
Diffstat (limited to 'sys/ia64')
-rw-r--r-- | sys/ia64/ia64/pmap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/ia64/ia64/pmap.c b/sys/ia64/ia64/pmap.c index e5587b9..82135fe 100644 --- a/sys/ia64/ia64/pmap.c +++ b/sys/ia64/ia64/pmap.c @@ -362,7 +362,7 @@ pmap_bootstrap() * enough sparse, causing us to (try to) create a huge VHPT. */ vhpt_size = 15; - while ((1<<vhpt_size) < ia64_btop(Maxmem) * 32) + while ((1<<vhpt_size) < Maxmem * 32) vhpt_size++; vhpt_base = 0; |